3v4l.org

run code in 300+ PHP versions simultaneously
<?php class b { $a = 'a'; } function lala(b &$a) { echo $a->a; } $d = new b(); lala($d);

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.70.4370.05020.37
5.4.390.0230.05718.52
5.4.380.0170.05718.77
5.4.370.0130.05718.75
5.4.360.0170.05018.55
5.4.350.0170.05718.80
5.4.340.0330.05318.48
5.4.320.0230.05318.61
5.4.310.0130.05318.79
5.4.300.0170.05318.80
5.4.290.0130.05318.67
5.4.280.0130.05318.50
5.4.270.0130.06018.52
5.4.260.0270.04718.61
5.4.250.0230.05018.74
5.4.240.0170.05718.74
5.4.230.0200.05018.82
5.4.220.0130.06018.59
5.4.210.0100.06018.77
5.4.200.0230.04316.61
5.4.190.0270.04318.79
5.4.180.0170.05718.79
5.4.170.0170.05718.73
5.4.160.0270.04318.81
5.4.150.0270.05318.57
5.4.140.0130.06316.27
5.4.130.0200.05316.36
5.4.120.0100.05316.20
5.4.110.0100.05316.33
5.4.100.2230.07316.27
5.4.90.0300.05016.37
5.4.80.0230.04016.20
5.4.70.0100.05316.32
5.4.60.0130.05016.19
5.4.50.1130.04016.41
5.4.40.0200.04716.26
5.4.30.0200.04716.39
5.4.20.0270.05016.27
5.4.10.0130.05316.15
5.4.00.0200.04715.70
5.3.290.0130.06014.68
5.3.280.0130.05314.75
5.3.270.0170.05714.65
5.3.260.0200.05714.81
5.3.250.0300.04314.59
5.3.240.0330.05014.62
5.3.230.0170.05014.66
5.3.220.0700.05314.76
5.3.210.1070.05014.79
5.3.200.0200.05014.69
5.3.190.0270.04014.56
5.3.180.0200.05014.78
5.3.170.0100.05314.54
5.3.160.0230.04014.78
5.3.150.0230.04714.59
5.3.140.0030.06714.68
5.3.130.0200.05014.77
5.3.120.0100.05714.54
5.3.110.0170.05714.67
5.3.100.0170.05314.09
5.3.90.0200.05014.04
5.3.80.0070.05714.03
5.3.70.0270.04014.13
5.3.60.0130.05714.02
5.3.50.0230.04314.14
5.3.40.0130.05013.99
5.3.30.0070.05314.12
5.3.20.0130.05013.73
5.3.10.0070.06013.72
5.3.00.0130.05013.66
5.2.170.0100.04011.34
5.2.160.0070.05011.16
5.2.150.0170.04011.24
5.2.140.0030.05011.25
5.2.130.0070.04711.13
5.2.120.0030.05011.20
5.2.110.0230.04011.16
5.2.100.0230.03011.30
5.2.90.0100.04011.21
5.2.80.0170.03311.31
5.2.70.0070.04711.22
5.2.60.0100.04011.10
5.2.50.0130.04011.06
5.2.40.0100.04011.05
5.2.30.0100.04010.96
5.2.20.0130.03710.94
5.2.10.0070.04010.88
5.2.00.0130.03710.92
5.1.60.0130.03310.19
5.1.50.0030.04310.02
5.1.40.0100.03310.11
5.1.30.0100.03710.44
5.1.20.0030.04310.37
5.1.10.0070.04010.14
5.1.00.0130.03710.09
5.0.50.0100.0308.56
5.0.40.0100.0238.41
5.0.30.0100.0408.40
5.0.20.0000.0338.34
5.0.10.0100.0278.38
5.0.00.0070.0478.18
4.4.90.0070.0176.92
4.4.80.0070.0206.92
4.4.70.0100.0176.92
4.4.60.0070.0236.92
4.4.50.0030.0276.92
4.4.40.0100.0336.92
4.4.30.0100.0176.92
4.4.20.0130.0176.92
4.4.10.0030.0306.92
4.4.00.0070.0376.92
4.3.110.0100.0206.92
4.3.100.0030.0306.92
4.3.90.0100.0276.92
4.3.80.0100.0306.92
4.3.70.0030.0276.92
4.3.60.0100.0206.92
4.3.50.0070.0306.92
4.3.40.0100.0376.92
4.3.30.0030.0276.92
4.3.20.0070.0236.92
4.3.10.0100.0206.92
4.3.00.0030.0276.97

preferences:
148.69 ms | 1398 KiB | 7 Q