3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 1; $test['bar'] = 2; print_r(compact('foo', $test['bar']))

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.08720.53
5.5.240.0270.06720.15
5.4.400.0370.06718.91
5.4.390.0270.04018.81
5.4.380.0370.05719.09
5.4.370.0370.03019.08
5.4.360.0330.03719.13
5.4.350.0270.04319.22
5.4.340.0330.04019.16
5.4.320.0430.06318.93
5.4.310.0400.06019.09
5.4.300.0400.05719.24
5.4.290.0370.04019.07
5.4.280.0330.04319.16
5.4.270.0330.06719.13
5.4.260.0370.05019.25
5.4.250.0300.03719.06
5.4.240.0430.05318.93
5.4.230.0370.05718.78
5.4.220.0300.03719.08
5.4.210.0270.05019.09
5.4.200.0300.04019.25
5.4.190.0230.03719.05
5.4.180.0230.03719.07
5.4.170.0200.04318.92
5.4.160.0200.03719.09
5.4.150.0200.03719.22
5.4.140.0270.03316.29
5.4.130.0270.03716.32
5.4.120.0230.03716.30
5.4.110.0230.03316.21
5.4.100.0270.03016.30
5.4.90.0300.03316.50
5.4.80.0200.03716.18
5.4.70.0270.03316.39
5.4.60.0200.03716.36
5.4.50.0370.04316.33
5.4.40.0330.04316.20
5.4.30.0370.03716.40
5.4.20.0300.05016.44
5.4.10.0300.03316.05
5.4.00.0200.03715.74
5.3.290.0330.05314.51
5.3.280.0430.04714.45
5.3.270.0230.04014.47
5.3.260.0230.04014.70
5.3.250.0170.04014.45
5.3.240.0270.03714.48
5.3.230.0230.03314.43
5.3.220.0200.04014.66
5.3.210.0230.03714.40
5.3.200.0230.03714.41
5.3.190.0230.03714.50
5.3.180.0200.03714.65
5.3.170.0270.03714.52
5.3.160.0300.03014.54
5.3.150.0200.03714.41
5.3.140.0330.04714.39
5.3.130.0300.05014.58
5.3.120.0230.05714.39
5.3.110.0300.05314.51
5.3.100.0200.03714.03
5.3.90.0270.03013.87
5.3.80.0300.02714.05
5.3.70.0230.03313.96
5.3.60.0300.03313.86
5.3.50.0200.03713.89
5.3.40.0300.04013.97
5.3.30.0130.04313.68
5.3.20.0300.07013.71
5.3.10.0200.04713.69
5.3.00.0300.05713.67
5.2.170.0170.03010.99
5.2.160.0300.05310.98
5.2.150.0200.02711.30
5.2.140.0200.02710.98
5.2.130.0200.03011.04
5.2.120.0170.04711.01
5.2.110.0300.05711.11
5.2.100.0270.02011.19
5.2.90.0230.04011.01
5.2.80.0230.05010.93
5.2.70.0200.04310.98
5.2.60.0270.03711.00
5.2.50.0200.03310.90
5.2.40.0130.03311.15
5.2.30.0170.03010.91
5.2.20.0170.03711.12
5.2.10.0270.05710.78
5.2.00.0200.04010.61
5.1.60.0200.0509.99
5.1.50.0270.0239.90
5.1.40.0200.0279.87
5.1.30.0300.04310.34
5.1.20.0100.03010.32
5.1.10.0170.03010.04
5.1.00.0200.0279.96
5.0.50.0130.0438.43
5.0.40.0200.0208.29
5.0.30.0200.0578.16
5.0.20.0070.0238.28
5.0.10.0170.0338.30
5.0.00.0200.0508.09
4.4.90.0100.0177.89
4.4.80.0100.0177.89
4.4.70.0070.0207.89
4.4.60.0170.0237.89
4.4.50.0130.0277.89
4.4.40.0100.0537.89
4.4.30.0170.0137.89
4.4.20.0030.0177.89
4.4.10.0130.0377.89
4.4.00.0200.0307.89
4.3.110.0030.0207.89
4.3.100.0070.0207.89
4.3.90.0170.0107.89
4.3.80.0100.0437.89
4.3.70.0100.0337.89
4.3.60.0130.0207.89
4.3.50.0070.0177.89
4.3.40.0100.0207.89
4.3.30.0070.0337.89
4.3.20.0030.0377.89
4.3.10.0030.0277.89
4.3.00.0100.0177.89

preferences:
150.12 ms | 1394 KiB | 7 Q