3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $settings = new StdObject(); $settings->lat = '21.12'; $settings->lng = '19.79'; $settings->zoom = 13; $settings->height = 300; $settings->content = 'foo bar qux'; $atts = array( 'lat' => $settings->lat, 'lng' => $settings->lng, 'zoom' => $settings->zoom, 'overviewMapControl' => 'false', 'rotateControl' => 'false', 'scaleControl' => 'false', 'scrollwheel' => 'false', 'width' => '100%', 'height' => $settings->height .'px', 'icon' => false, 'content' => $settings->content, ); $mapsID = md5( serialize( $atts ) ); echo $mapsID;
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'StdObject' not found in /in/IEg2Z:3 Stack trace: #0 {main} thrown in /in/IEg2Z on line 3
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Class 'StdObject' not found in /in/IEg2Z on line 3
Process exited with code 255.