3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "mama"; $array = array ( 1 => "a", 2 => "b", 3=> "c", ); $andra = array( 1=>12, 3=>14); $andra[]=56; $nr=count($array); for($i=1;$i<$nr;$i++){ echo "eu si tu : {$array[$i]}\n"; } var_dump($array); class eu { function do_eu(){ echo " eu eu eu \n"; } } $nou = new eu; $nou ->do_eu(); print (new eu0->a ; function a( $array ){ foreach( $array as $key => $value ){ if( is_array( $value ) ) $array[ $key ] = a( $value ); } return (object) $array; } function bebe( $andra ) { foreach( $andra as $key => $value) { if(is_array($value) ) $array[$key]= bebe($value); } return(object) $array; } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.260.0070.04512.40
5.4.250.0080.05412.40
5.4.240.0090.03912.40
5.4.230.0100.03912.38
5.4.220.0080.03812.39
5.4.210.0090.04312.39
5.4.200.0110.05212.39
5.4.190.0070.04712.38
5.4.180.0100.05712.38
5.4.170.0080.05612.39
5.4.160.0080.04312.38
5.4.150.0070.04112.38
5.4.140.0070.04412.07
5.4.130.0090.04012.05
5.4.120.0110.04612.02
5.4.110.0090.04112.02
5.4.100.0070.04012.02
5.4.90.0080.04512.02
5.4.80.0060.04712.02
5.4.70.0100.04112.01
5.4.60.0070.04612.01
5.4.50.0060.04312.01
5.4.40.0090.05012.00
5.4.30.0070.04312.00
5.4.20.0080.04111.99
5.4.10.0050.04711.99
5.4.00.0080.04211.49
5.3.280.0070.04912.71
5.3.270.0090.05112.72
5.3.260.0090.04912.72
5.3.250.0100.04512.72
5.3.240.0100.04612.72
5.3.230.0160.04812.71
5.3.220.0110.05312.68
5.3.210.0130.04712.68
5.3.200.0110.05212.68
5.3.190.0140.04912.68
5.3.180.0100.04712.68
5.3.170.0110.04612.67
5.3.160.0100.04512.67
5.3.150.0050.04912.67
5.3.140.0090.04612.66
5.3.130.0070.04912.66
5.3.120.0070.06512.66
5.3.110.0100.06012.66
5.3.100.0090.05212.12
5.3.90.0070.05012.09
5.3.80.0140.06812.09
5.3.70.0190.08212.09
5.3.60.0210.06112.07
5.3.50.0180.06912.02
5.3.40.0110.06112.01
5.3.30.0110.04111.97
5.3.20.0090.04711.75
5.3.10.0130.06811.71
5.3.00.0130.06711.70

preferences:
142.75 ms | 1394 KiB | 7 Q