3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo(){ static function bar(){ return '1'; } } $foo = new Foo(); echo $foo->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.4.260.0100.05018.71
5.4.250.0130.05318.69
5.4.240.0070.05718.93
5.4.230.0170.04718.90
5.4.220.0130.05318.93
5.4.210.0070.05318.94
5.4.200.0100.05018.79
5.4.190.0130.04718.90
5.4.180.0100.05018.96
5.4.170.0100.05718.89
5.4.160.0170.04718.89
5.4.150.0030.05718.88
5.4.140.0100.06716.43
5.4.130.0030.05716.35
5.4.120.0030.06316.36
5.4.110.0100.08016.46
5.4.100.0000.07716.44
5.4.90.0100.05016.31
5.4.80.0070.05316.42
5.4.70.0070.04716.26
5.4.60.0100.04316.33
5.4.50.0070.05316.33
5.4.40.0200.05716.59
5.4.30.0070.05016.32
5.4.20.0030.05716.57
5.4.10.0130.04716.53
5.4.00.0100.05015.75
5.3.280.0130.04314.81
5.3.270.0000.06014.76
5.3.260.0130.06714.82
5.3.250.0100.05314.76
5.3.240.0000.05714.82
5.3.230.0070.07314.42
5.3.220.0070.07314.54
5.3.210.0100.05314.64
5.3.200.0070.07314.65
5.3.190.0000.05714.66
5.3.180.0070.05314.53
5.3.170.0130.04714.46
5.3.160.0070.05314.64
5.3.150.0130.04314.78
5.3.140.0070.07314.54
5.3.130.0100.08014.45
5.3.120.0030.05714.59
5.3.110.0100.06714.52
5.3.100.0070.05014.25
5.3.90.0100.04713.91
5.3.80.0000.06014.00
5.3.70.0070.04714.11
5.3.60.0070.05014.08
5.3.50.0130.04313.78
5.3.40.0170.05014.13
5.3.30.0030.06313.89
5.3.20.0070.07013.77
5.3.10.0100.06713.63
5.3.00.0100.06713.63
5.2.170.0030.06311.09
5.2.160.0130.04311.20
5.2.150.0100.04011.31
5.2.140.0100.05711.08
5.2.130.0000.05311.31
5.2.120.0070.05311.04
5.2.110.0130.04711.25
5.2.100.0070.03711.07
5.2.90.0130.03311.27
5.2.80.0070.03710.98
5.2.70.0070.04311.26
5.2.60.0070.04311.00
5.2.50.0030.05311.10
5.2.40.0070.04011.05
5.2.30.0130.04711.18
5.2.20.0030.04310.93
5.2.10.0070.03710.84
5.2.00.0070.04010.80
5.1.60.0170.02710.08
5.1.50.0030.0339.82
5.1.40.0030.0379.92
5.1.30.0030.04010.28
5.1.20.0070.05010.43
5.1.10.0000.05310.16
5.1.00.0070.03310.12
5.0.50.0000.0308.63
5.0.40.0030.0378.41
5.0.30.0070.0408.23
5.0.20.0070.0238.18
5.0.10.0070.0238.32
5.0.00.0030.0508.11
4.4.90.0030.0236.92
4.4.80.0030.0206.92
4.4.70.0070.0276.92
4.4.60.0070.0236.92
4.4.50.0070.0176.92
4.4.40.0030.0306.92
4.4.30.0000.0236.92
4.4.20.0100.0276.92
4.4.10.0000.0236.92
4.4.00.0030.0336.92
4.3.110.0030.0206.92
4.3.100.0070.0236.92
4.3.90.0030.0206.92
4.3.80.0070.0276.92
4.3.70.0000.0236.92
4.3.60.0070.0306.92
4.3.50.0030.0206.92
4.3.40.0000.0336.92
4.3.30.0070.0176.92
4.3.20.0000.0236.92
4.3.10.0070.0176.92
4.3.00.0030.01714.49

preferences:
141.22 ms | 1394 KiB | 7 Q