3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo{ private $blah; function echoBlah(foo $foo) { echo $foo->blah; } function __construct($blah) { $this->blah = $blah } } $f1 = new foo("OMG"); $f2 = new foo("WTF"); $f1->echoBlah($f2);

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.4.390.0270.04718.76
5.4.380.0170.07718.64
5.4.370.0330.06318.50
5.4.360.0230.05018.65
5.4.350.0330.06718.58
5.4.340.0330.06018.75
5.4.320.0200.06018.72
5.4.310.0330.06718.72
5.4.300.0130.07018.57
5.4.290.0200.05718.79
5.4.280.0300.04718.70
5.4.270.0270.05318.61
5.4.260.0200.05318.58
5.4.250.0200.05318.85
5.4.240.0270.07018.72
5.4.230.0300.06018.49
5.4.220.0270.05318.60
5.4.210.0300.05018.55
5.4.200.0200.04716.59
5.4.190.0200.05718.68
5.4.180.0130.05718.83
5.4.170.0230.05718.73
5.4.160.0330.04318.79
5.4.150.0230.05718.54
5.4.140.0330.04316.29
5.4.130.0270.05016.26
5.4.120.0100.06016.18
5.4.110.0230.04316.21
5.4.100.0230.06016.34
5.4.90.0270.06716.27
5.4.80.0200.06016.29
5.4.70.0130.06016.27
5.4.60.0130.05716.20
5.4.50.0230.06016.21
5.4.40.0170.05316.26
5.4.30.0200.05716.42
5.4.20.0100.06316.39
5.4.10.0230.04716.25
5.4.00.0270.04315.67
5.3.290.0170.06314.68
5.3.280.0200.05314.63
5.3.270.0300.04714.62
5.3.260.0230.07314.83
5.3.250.0430.04714.65
5.3.240.0300.06314.66
5.3.230.0370.05314.60
5.3.220.0270.06714.62
5.3.210.0300.06314.61
5.3.200.0230.06714.72
5.3.190.0270.06314.59
5.3.180.0200.07014.79
5.3.170.0170.07314.77
5.3.160.0130.05314.59
5.3.150.0270.05314.77
5.3.140.0230.06314.78
5.3.130.0270.07014.54
5.3.120.0200.07314.55
5.3.110.0270.06714.57
5.3.100.0270.06314.07
5.3.90.0270.06314.15
5.3.80.0170.07314.02
5.3.70.0270.06014.06
5.3.60.0230.05314.05
5.3.50.0230.06013.97
5.3.40.0170.06013.97
5.3.30.0170.05014.12
5.3.20.0330.04313.73
5.3.10.0330.05013.65
5.3.00.0230.05313.74
5.2.170.0130.05711.19
5.2.160.0170.04311.37
5.2.150.0130.04311.37
5.2.140.0170.05311.25
5.2.130.0270.04711.21
5.2.120.0200.05011.09
5.2.110.0230.03711.12
5.2.100.0030.05311.21
5.2.90.0170.04011.09
5.2.80.0100.05011.08
5.2.70.0230.03011.09
5.2.60.0200.04311.16
5.2.50.0200.03711.12
5.2.40.0200.03711.20
5.2.30.0100.04711.02
5.2.20.0200.04710.99
5.2.10.0170.05011.07
5.2.00.0170.05310.77
5.1.60.0170.04310.07
5.1.50.0100.05010.02
5.1.40.0000.05710.16
5.1.30.0100.04310.44
5.1.20.0070.04710.46
5.1.10.0130.05710.16
5.1.00.0100.04310.12
5.0.50.0070.0308.66
5.0.40.0100.0308.48
5.0.30.0100.0478.37
5.0.20.0070.0338.18
5.0.10.0130.0238.38
5.0.00.0130.0508.16
4.4.90.0070.0305.89
4.4.80.0100.0235.89
4.4.70.0030.0336.00
4.4.60.0070.0305.98
4.4.50.0200.0205.87
4.4.40.0100.0435.95
4.4.30.0100.0205.86
4.4.20.0100.0235.97
4.4.10.0100.0206.02
4.4.00.0070.0435.91
4.3.110.0170.0235.82
4.3.100.0100.0205.92
4.3.90.0100.0205.79
4.3.80.0030.0375.82
4.3.70.0070.0235.86
4.3.60.0100.0275.80
4.3.50.0100.0305.82
4.3.40.0070.0435.82
4.3.30.0000.0304.68
4.3.20.0000.0304.68
4.3.10.0030.0304.68
4.3.00.0070.02712.49

preferences:
132.7 ms | 1398 KiB | 7 Q