3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { var static $test=10; static function afunction() { echo self::$test; } } $testa = new a(); echo $testa->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.0130.05017.39
5.5.110.0070.07017.33
5.5.100.0130.05017.20
5.5.90.0100.07317.33
5.5.80.0070.06717.27
5.5.70.0070.08017.31
5.5.60.0030.06717.16
5.5.50.0130.07017.23
5.5.40.0130.06317.22
5.5.30.0170.06317.30
5.5.20.0200.06317.24
5.5.10.0030.06017.29
5.5.00.0100.03317.32
5.4.280.0030.08319.09
5.4.270.0000.05019.02
5.4.260.0070.07319.09
5.4.250.0100.06319.03
5.4.240.0100.07019.11
5.4.230.0170.03719.11
5.4.220.0000.07719.03
5.4.210.0030.07719.01
5.4.200.0130.06318.98
5.4.190.0130.06018.88
5.4.180.0000.08319.04
5.4.170.0070.08018.97
5.4.160.0030.07719.11
5.4.150.0100.05319.07
5.4.140.0000.05016.29
5.4.130.0100.07316.30
5.4.120.0070.04716.39
5.4.110.0070.04316.55
5.4.100.0000.05316.38
5.4.90.0000.04016.43
5.4.80.0000.05716.57
5.4.70.0000.04316.44
5.4.60.0070.07016.36
5.4.50.0130.05716.46
5.4.40.0030.07316.61
5.4.30.0030.07716.32
5.4.20.0070.07016.35
5.4.10.0100.07716.44
5.4.00.0100.06315.84
5.3.280.0170.05314.62
5.3.270.0030.06714.82
5.3.260.0030.08314.66
5.3.250.0000.08714.64
5.3.240.0100.04014.62
5.3.230.0030.08014.66
5.3.220.0030.05714.61
5.3.210.0100.06014.53
5.3.200.0070.03314.59
5.3.190.0030.04714.66
5.3.180.0070.07714.62
5.3.170.0000.04314.62
5.3.160.0070.07314.65
5.3.150.0070.05314.61
5.3.140.0070.04314.52
5.3.130.0130.04014.61
5.3.120.0070.06314.57
5.3.110.0070.06714.55
5.3.100.0100.06314.05
5.3.90.0100.05714.05
5.3.80.0030.05314.05
5.3.70.0030.05014.05
5.3.60.0000.07314.03
5.3.50.0070.04313.98
5.3.40.0100.04313.83
5.3.30.0070.04713.91
5.3.20.0030.07713.74
5.3.10.0030.04313.70
5.3.00.0030.04013.69

preferences:
140.25 ms | 1386 KiB | 7 Q