The above example will output:

<?php $v8 = new V8Js (); /* basic.js */ $JS = <<< EOT len = print('Hello' + ' ' + 'World!' + "\

"); len; EOT; try { var_dump ( $v8 -> executeString ( $JS , 'basic.js' )); } catch ( V8JsException $e ) { var_dump ( $e ); } ?>

<?php $v8 = new V8Js (); /* basic.js */ $JS = <<< EOT len = print('Hello' + ' ' + 'World!' + "\

"); len; EOT; try { var_dump ( $v8 -> executeString ( $JS , 'basic.js' )); } catch ( V8JsException $e ) { var_dump ( $e ); } ?>

add a note User Contributed Notes

There are no user contributed notes for this page.