3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { var static $test = 10; function afunction() { echo self::$test; } } $test = new a(); echo $test->afunction();

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.5.120.0170.05719.33
5.5.110.0070.06719.33
5.5.100.0100.07719.46
5.5.90.0100.03719.55
5.5.80.0030.04019.45
5.5.70.0100.05019.21
5.5.60.0100.07719.45
5.5.50.0100.04719.54
5.5.40.0130.07019.52
5.5.30.0030.05019.46
5.5.20.0070.08019.39
5.5.10.0070.03719.46
5.5.00.0070.04319.41
5.4.280.0070.04718.92
5.4.270.0170.06019.16
5.4.260.0030.08019.15
5.4.250.0070.05719.23
5.4.240.0000.04019.07
5.4.230.0030.04319.23
5.4.220.0030.04019.14
5.4.210.0070.04718.85
5.4.200.0100.07318.93
5.4.190.0000.04319.11
5.4.180.0030.07319.14
5.4.170.0100.05319.14
5.4.160.0030.05019.13
5.4.150.0030.04718.95
5.4.140.0070.07716.38
5.4.130.0030.08016.55
5.4.120.0130.06316.26
5.4.110.0130.04316.49
5.4.100.0070.05316.34
5.4.90.0200.06016.41
5.4.80.0070.07016.36
5.4.70.0070.07716.48
5.4.60.0070.06016.24
5.4.50.0100.06716.46
5.4.40.0070.04316.37
5.4.30.0030.05716.39
5.4.20.0070.04316.38
5.4.10.0070.06016.27
5.4.00.0030.04015.84
5.3.280.0030.04014.61
5.3.270.0030.04314.64
5.3.260.0030.05014.61
5.3.250.0130.03014.69
5.3.240.0000.04314.61
5.3.230.0070.07714.59
5.3.220.0030.03714.71
5.3.210.0230.05714.48
5.3.200.0100.05314.71
5.3.190.0100.04314.59
5.3.180.0100.06014.63
5.3.170.0030.06314.57
5.3.160.0070.07014.70
5.3.150.0030.05014.61
5.3.140.0030.04014.61
5.3.130.0070.07714.60
5.3.120.0070.04714.55
5.3.110.0030.04014.54
5.3.100.0170.04314.09
5.3.90.0000.08314.06
5.3.80.0130.06314.02
5.3.70.0070.07014.09
5.3.60.0070.03713.96
5.3.50.0030.03713.82
5.3.40.0030.04313.91
5.3.30.0000.04013.90
5.3.20.0030.03713.57
5.3.10.0070.07313.65
5.3.00.0000.05313.58
5.2.170.0030.03011.10
5.2.160.0030.05011.17
5.2.150.0030.03311.14
5.2.140.0000.03711.03
5.2.130.0100.02711.16
5.2.120.0070.06011.13
5.2.110.0100.05011.04
5.2.100.0000.06311.04
5.2.90.0000.04311.00
5.2.80.0030.03310.98
5.2.70.0000.03310.98
5.2.60.0030.03010.99
5.2.50.0070.04311.01
5.2.40.0070.03011.03
5.2.30.0030.03311.05
5.2.20.0000.03010.91
5.2.10.0070.02711.00
5.2.00.0030.02710.63
5.1.60.0030.0239.99
5.1.50.0000.03010.04
5.1.40.0030.05310.02
5.1.30.0000.03710.48
5.1.20.0070.02310.50
5.1.10.0030.05310.13
5.1.00.0100.03010.06
5.0.50.0000.0438.56
5.0.40.0000.0308.55
5.0.30.0070.0538.36
5.0.20.0000.0378.11
5.0.10.0070.0378.18
5.0.00.0030.0538.13
4.4.90.0070.0177.49
4.4.80.0030.0277.49
4.4.70.0030.0177.49
4.4.60.0000.0237.49
4.4.50.0070.0307.49
4.4.40.0000.0507.49
4.4.30.0000.0177.49
4.4.20.0030.0177.49
4.4.10.0030.0377.49
4.4.00.0070.0237.49
4.3.110.0030.0377.49
4.3.100.0030.0337.49
4.3.90.0000.0377.49
4.3.80.0000.0477.49
4.3.70.0030.0207.49
4.3.60.0000.0377.49
4.3.50.0030.0307.49
4.3.40.0030.0237.49
4.3.30.0000.0177.49
4.3.20.0070.0237.49
4.3.10.0030.0277.49
4.3.00.0000.0377.49

preferences:
160.43 ms | 1398 KiB | 7 Q