3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $code = new MongoCode('function() { '. 'for(i=0;i<10;i++) {'. 'db.foo.update({z : i}, {z : x});'. '}'. 'return x-1;'. '}', array("x" => 4)); var_dump($code);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'MongoCode' not found in /in/14gTO:3 Stack trace: #0 {main} thrown in /in/14gTO on line 3
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Class 'MongoCode' not found in /in/14gTO on line 3
Process exited with code 255.