3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( "a", "b" = new stdClass, new stdClass ); var_dump($a);

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.08020.48
5.5.240.0300.06720.25
5.4.400.0370.05318.72
5.4.390.0370.06318.46
5.4.380.0230.06018.61
5.4.370.0400.05318.74
5.4.360.0300.05718.79
5.4.350.0230.06318.52
5.4.340.0270.06318.57
5.4.320.0300.05318.52
5.4.310.0170.06718.60
5.4.300.0330.05018.78
5.4.290.0300.05318.72
5.4.280.0230.06018.45
5.4.270.0330.05018.68
5.4.260.0370.05018.68
5.4.250.0400.05018.79
5.4.240.0370.04718.45
5.4.230.0230.05718.77
5.4.220.0330.05718.73
5.4.210.0330.05018.49
5.4.200.0470.05716.51
5.4.190.0430.07018.83
5.4.180.0270.06318.75
5.4.170.0470.07318.77
5.4.160.0270.06018.57
5.4.150.0330.05718.78
5.4.140.0400.06316.29
5.4.130.0370.05316.33
5.4.120.0230.06016.31
5.4.110.0430.04016.17
5.4.100.0270.05716.28
5.4.90.0370.05016.42
5.4.80.0370.05716.26
5.4.70.0200.07016.20
5.4.60.0400.04316.39
5.4.50.0270.05716.26
5.4.40.0330.05016.39
5.4.30.0300.05016.38
5.4.20.0300.05316.27
5.4.10.0300.05016.18
5.4.00.0270.05015.87
5.3.290.0270.06014.64
5.3.280.0330.05014.64
5.3.270.0400.05314.54
5.3.260.0330.05314.65
5.3.250.0330.07314.61
5.3.240.0270.05714.68
5.3.230.0330.07714.55
5.3.220.0230.05714.46
5.3.210.0300.06314.64
5.3.200.0300.05014.46
5.3.190.0230.05714.57
5.3.180.0300.05314.57
5.3.170.0430.03714.54
5.3.160.0300.06714.55
5.3.150.0300.05314.48
5.3.140.0330.07014.45
5.3.130.0300.05714.52
5.3.120.0170.06714.64
5.3.110.0500.03314.57
5.3.100.0200.06714.00
5.3.90.0270.05713.94
5.3.80.0300.07714.00
5.3.70.0330.05713.99
5.3.60.0330.04714.08
5.3.50.0370.05013.97
5.3.40.0200.05713.84
5.3.30.0200.05713.87
5.3.20.0230.05313.62
5.3.10.0230.05313.73
5.3.00.0300.05013.61
5.2.170.0270.04011.13
5.2.160.0270.03711.17
5.2.150.0130.05011.20
5.2.140.0300.04311.12
5.2.130.0200.04711.05
5.2.120.0270.04011.23
5.2.110.0300.04011.01
5.2.100.0330.03311.13
5.2.90.0230.04311.16
5.2.80.0230.04011.07
5.2.70.0200.05011.23
5.2.60.0270.04010.99
5.2.50.0230.04311.16
5.2.40.0200.05310.96
5.2.30.0200.04710.95
5.2.20.0300.03010.91
5.2.10.0200.04711.00
5.2.00.0200.04310.82
5.1.60.0170.03710.06
5.1.50.0130.0409.95
5.1.40.0300.0309.93
5.1.30.0130.04310.35
5.1.20.0230.03310.45
5.1.10.0170.04010.05
5.1.00.0170.03710.13
5.0.50.0070.0338.67
5.0.40.0170.0238.40
5.0.30.0130.0438.24
5.0.20.0130.0278.37
5.0.10.0130.0308.20
5.0.00.0100.0438.23
4.4.90.0100.0205.89
4.4.80.0170.0235.88
4.4.70.0130.0305.93
4.4.60.0070.0305.86
4.4.50.0200.0175.83
4.4.40.0100.0375.89
4.4.30.0130.0275.82
4.4.20.0170.0276.00
4.4.10.0230.0205.97
4.4.00.0070.0405.95
4.3.110.0070.0275.80
4.3.100.0130.0305.77
4.3.90.0100.0275.82
4.3.80.0170.0375.80
4.3.70.0070.0275.77
4.3.60.0100.0235.79
4.3.50.0100.0235.77
4.3.40.0130.0305.75
4.3.30.0000.0275.52
4.3.20.0070.0205.52
4.3.10.0070.0205.52
4.3.00.0130.0206.80

preferences:
145.62 ms | 1394 KiB | 7 Q