3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $foo = []; public foo() { $foo[] = ''; print_r($this->foo); } } $f = new Foo(); $f->foo();

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.120.0070.06720.95
5.6.110.0100.04021.04
5.6.100.0100.08020.97
5.6.90.0130.08021.00
5.6.80.0130.07320.36
5.5.280.0070.08720.87
5.5.270.0030.04020.86
5.5.260.0070.06020.84
5.5.250.0100.07720.57
5.5.240.0070.07020.34
5.4.440.0670.06319.65
5.4.430.0800.06719.48
5.4.420.0600.05719.58
5.4.410.0670.05319.20
5.4.400.0800.05019.38
5.4.390.0730.09019.29
5.4.380.0930.05718.84
5.4.370.0800.05719.16
5.4.360.0600.05319.25
5.4.350.0800.05719.38
5.4.340.0730.06318.84
5.4.320.0770.06019.29
5.4.310.0770.06019.24
5.4.300.0800.05718.87
5.4.290.0630.06019.16
5.4.280.0670.05319.25
5.4.270.0570.06019.30
5.4.260.0870.04719.25
5.4.250.0530.05719.05
5.4.240.0730.05719.29
5.4.230.0730.04719.05
5.4.220.0600.05019.14
5.4.210.0100.05319.19
5.4.200.0430.05016.93
5.4.190.0470.06018.98
5.4.180.0200.05019.32
5.4.170.0570.05719.25
5.4.160.0400.05718.96
5.4.150.0100.06718.94
5.4.140.0400.05716.54
5.4.130.0470.06716.31
5.4.120.0170.04716.39
5.4.110.0130.05316.42
5.4.100.0430.05716.38
5.4.90.0430.05316.29
5.4.80.0530.05716.51
5.4.70.0630.05716.37
5.4.60.0700.05016.28
5.4.50.0630.04316.26
5.4.40.0770.05316.26
5.4.30.0570.06016.39
5.4.20.0570.05716.39
5.4.10.0730.04016.25
5.4.00.0800.04315.84
5.3.290.0430.05714.58
5.3.280.0630.05314.82
5.3.270.0600.04314.59
5.3.260.0530.05314.51
5.3.250.0500.06014.75
5.3.240.0500.05014.46
5.3.230.0570.06314.51
5.3.220.0600.05014.54
5.3.210.0570.05714.57
5.3.200.0570.05014.56
5.3.190.0500.06014.56
5.3.180.0630.04314.57
5.3.170.0630.06314.64
5.3.160.0530.04314.47
5.3.150.0430.05314.60
5.3.140.0970.06714.69
5.3.130.0570.06014.55
5.3.120.0570.05314.54
5.3.110.0500.05014.55
5.3.100.0400.06014.18
5.3.90.0600.04713.98
5.3.80.0600.05314.24
5.3.70.0570.04713.85
5.3.60.0430.06014.22
5.3.50.0500.05713.84
5.3.40.0670.05013.95
5.3.30.0600.06013.81
5.3.20.0570.06313.91
5.3.10.0570.06313.56
5.3.00.0470.06013.64
5.2.170.0570.03311.36
5.2.160.0530.03311.05
5.2.150.0030.05311.20
5.2.140.0300.05011.19
5.2.130.0500.04711.25
5.2.120.0470.04311.15
5.2.110.0600.04011.09
5.2.100.0500.04011.15
5.2.90.0400.04311.11
5.2.80.0500.04011.10
5.2.70.0430.04711.02
5.2.60.0670.04011.09
5.2.50.0430.04710.93
5.2.40.0270.05010.91
5.2.30.0200.05710.88
5.2.20.0370.03310.97
5.2.10.0430.03010.77
5.2.00.0300.04310.72
5.1.60.0270.03010.00
5.1.50.0400.03010.15
5.1.40.0430.03010.12
5.1.30.0330.03310.25
5.1.20.0370.03710.21
5.1.10.0300.04710.04
5.1.00.0370.0339.90
5.0.50.0230.0278.55
5.0.40.0300.0208.46
5.0.30.0170.0538.11
5.0.20.0230.0278.22
5.0.10.0270.0278.06
5.0.00.0200.0478.22
4.4.90.0270.0337.09
4.4.80.0230.0237.09
4.4.70.0230.0337.09
4.4.60.0200.0307.09
4.4.50.0170.0237.09
4.4.40.0200.0337.09
4.4.30.0230.0237.09
4.4.20.0130.0307.09
4.4.10.0130.0307.09
4.4.00.0100.0377.09
4.3.110.0170.0207.09
4.3.100.0170.0207.09
4.3.90.0230.0177.09
4.3.80.0200.0337.09
4.3.70.0170.0207.09
4.3.60.0130.0237.09
4.3.50.0270.0137.09
4.3.40.0200.0337.09
4.3.30.0100.0277.09
4.3.20.0100.0237.09
4.3.10.0100.0207.09
4.3.00.0000.0237.07

preferences:
146.74 ms | 1394 KiB | 7 Q