3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "cool"; $tester = new stdClass(); $tester->$test = array(); for($i=0;$i<10;$i++){ array_push($tester->$test) = $i; } print_r($tester);

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.6.80.0070.05720.28
5.5.240.0070.07720.34
5.4.400.0170.05318.57
5.4.390.0130.06718.62
5.4.380.0100.06718.72
5.4.370.0270.05018.62
5.4.360.0200.05018.61
5.4.350.0270.05318.44
5.4.340.0130.05718.74
5.4.320.0270.04318.70
5.4.310.0100.06018.64
5.4.300.0070.06318.46
5.4.290.0300.05318.47
5.4.280.0100.06018.47
5.4.270.0270.04718.55
5.4.260.0170.05318.50
5.4.250.0170.05718.46
5.4.240.0230.05318.64
5.4.230.0330.05318.54
5.4.220.0200.05318.72
5.4.210.0200.05018.46
5.4.200.0200.04716.55
5.4.190.0230.04718.49
5.4.180.0370.05018.52
5.4.170.0130.05718.55
5.4.160.0130.05318.59
5.4.150.0200.04718.40
5.4.140.0230.04316.35
5.4.130.0200.04316.36
5.4.120.0200.04316.19
5.4.110.0200.04716.23
5.4.100.0170.05016.30
5.4.90.0230.04716.34
5.4.80.0200.04716.29
5.4.70.0300.04016.04
5.4.60.0200.04716.10
5.4.50.0130.05016.16
5.4.40.0200.05016.14
5.4.30.0300.03716.03
5.4.20.0200.04316.23
5.4.10.0170.04716.12
5.4.00.0270.06015.63
5.3.290.0270.07014.52
5.3.280.0200.05314.66
5.3.270.0170.05314.59
5.3.260.0200.07714.59
5.3.250.0230.04314.50
5.3.240.0200.05314.68
5.3.230.0230.05314.56
5.3.220.0170.05714.50
5.3.210.0270.04714.53
5.3.200.0200.05314.61
5.3.190.0270.04314.54
5.3.180.0170.05014.53
5.3.170.0130.05314.62
5.3.160.0170.05014.59
5.3.150.0130.05314.52
5.3.140.0230.04714.63
5.3.130.0100.06014.45
5.3.120.0230.05014.51
5.3.110.0200.05714.62
5.3.100.0130.06013.98
5.3.90.0230.04313.89
5.3.80.0200.04713.98
5.3.70.0230.04713.98
5.3.60.0200.05014.04
5.3.50.0230.05014.05
5.3.40.0170.05014.02
5.3.30.0100.05713.98
5.3.20.0000.06313.75
5.3.10.0270.04313.52
5.3.00.0200.04713.54
5.2.170.0130.05011.27
5.2.160.0100.04311.18
5.2.150.0300.02711.16
5.2.140.0200.04311.16
5.2.130.0130.04311.23
5.2.120.0100.04311.07
5.2.110.0100.04311.13
5.2.100.0270.02711.15
5.2.90.0170.03711.14
5.2.80.0030.05011.12
5.2.70.0170.04011.14
5.2.60.0230.04711.07
5.2.50.0130.05311.14
5.2.40.0170.03711.00
5.2.30.0070.04710.88
5.2.20.0200.04311.09
5.2.10.0100.05311.01
5.2.00.0070.04310.74
5.1.60.0100.0409.96
5.1.50.0100.04310.02
5.1.40.0030.04310.00
5.1.30.0100.04010.47
5.1.20.0130.03310.44
5.1.10.0130.03310.09
5.1.00.0100.03710.01
5.0.50.0000.0338.64
5.0.40.0100.0238.38
5.0.30.0070.0438.34
5.0.20.0070.0278.25
5.0.10.0130.0238.17
5.0.00.0030.0438.34
4.4.90.0100.0175.90
4.4.80.0000.0305.82
4.4.70.0000.0275.87
4.4.60.0100.0205.94
4.4.50.0070.0205.91
4.4.40.0000.0405.89
4.4.30.0030.0235.87
4.4.20.0100.0206.00
4.4.10.0100.0205.95
4.4.00.0030.0375.90
4.3.110.0030.0275.82
4.3.100.0030.0235.79
4.3.90.0130.0135.79
4.3.80.0030.0375.87
4.3.70.0100.0205.77
4.3.60.0000.0275.83
4.3.50.0070.0235.82
4.3.40.0070.0335.73
4.3.30.0100.0174.55
4.3.20.0000.0274.61
4.3.10.0000.0234.54
4.3.00.0030.0207.27

preferences:
145.54 ms | 1394 KiB | 7 Q