3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var data = json_decode('{"points":[{"x":138,"y":140,"id":"p1499690394585","selected":false,"height":0},{"x":117,"y":438,"id":"p14996903949,"selected":false,"height":0},{"x":444,"y":603,"id":"p1499690395272","selected":false,"height":0},{"x":709,"y":567,"id":"p1499690395578","selected":false,"height":0},{"x":794,"y":289,"id":"p1499690395867","selected":false,"height":0},{"x":526,"y":119,"id":"p1499690396203","selected":false,"height":0},{"x":252,"y":39,"id":"p1499690396617","selected":false,"height":0}],"fill":"none","stroke":"black","closed":true}'); print_r(data);
based on fTTaF
Output for 7.0.0 - 7.1.7
Parse error: syntax error, unexpected 'var' (T_VAR), expecting end of file in /in/5iS9c on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected T_VAR, expecting $end in /in/5iS9c:3 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected 'var' (T_VAR) in /in/5iS9c on line 3
Process exited with code 255.