3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testStatic { $myvar = 'blah'; function give() { return $this->myvar; } } echo testStatic::give();

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.270.0100.05718.75
5.4.260.0170.06318.76
5.4.250.0100.05019.02
5.4.240.0070.05718.80
5.4.230.0100.05019.08
5.4.220.0100.05318.84
5.4.210.0200.04018.99
5.4.200.0070.05018.93
5.4.190.0170.06718.90
5.4.180.0070.05318.74
5.4.170.0070.06019.00
5.4.160.0100.06318.64
5.4.150.0130.05318.82
5.4.140.0200.04716.55
5.4.130.0270.05316.50
5.4.120.0300.05016.38
5.4.110.0130.05316.52
5.4.100.0130.05316.44
5.4.90.0130.04316.66
5.4.80.0070.05016.33
5.4.70.0070.07016.32
5.4.60.0130.06316.43
5.4.50.0200.04716.37
5.4.40.0170.05316.31
5.4.30.0100.05316.39
5.4.20.0130.06316.38
5.4.10.0070.05016.46
5.4.00.0100.04315.74
5.3.280.0070.05314.57
5.3.270.0130.06714.66
5.3.260.0100.06314.57
5.3.250.0170.04014.68
5.3.240.0230.05714.66
5.3.230.0100.07014.56
5.3.220.0230.04314.64
5.3.210.0130.04714.55
5.3.200.0100.04714.58
5.3.190.0130.04314.65
5.3.180.0100.04714.69
5.3.170.0000.05314.54
5.3.160.0130.06714.62
5.3.150.0100.04714.55
5.3.140.0100.06714.52
5.3.130.0130.04714.77
5.3.120.0170.06714.61
5.3.110.0100.05714.76
5.3.100.0200.04014.02
5.3.90.0070.05014.11
5.3.80.0070.06714.10
5.3.70.0030.05314.09
5.3.60.0030.05314.01
5.3.50.0100.04314.12
5.3.40.0030.05013.93
5.3.30.0130.04313.89
5.3.20.0100.06013.71
5.3.10.0030.05013.63
5.3.00.0130.04713.68
5.2.170.0100.03711.22
5.2.160.0030.04011.20
5.2.150.0070.04011.20
5.2.140.0070.05711.31
5.2.130.0030.04310.99
5.2.120.0030.04011.07
5.2.110.0070.05711.25
5.2.100.0000.04311.16
5.2.90.0070.03711.07
5.2.80.0070.05311.24
5.2.70.0030.04311.24
5.2.60.0030.04011.12
5.2.50.0030.04011.00
5.2.40.0030.04011.07
5.2.30.0070.03710.93
5.2.20.0130.04311.17
5.2.10.0100.03711.07
5.2.00.0070.03710.80
5.1.60.0000.05310.24
5.1.50.0030.03310.09
5.1.40.0070.04710.04
5.1.30.0030.03710.41
5.1.20.0170.03010.17
5.1.10.0030.04010.02
5.1.00.0070.03710.26
5.0.50.0000.0338.73
5.0.40.0000.0308.60
5.0.30.0070.0508.27
5.0.20.0030.0278.15
5.0.10.0030.0378.25
5.0.00.0030.0538.13
4.4.90.0030.0205.88
4.4.80.0030.0205.79
4.4.70.0030.0275.80
4.4.60.0070.0205.83
4.4.50.0030.0305.91
4.4.40.0000.0375.90
4.4.30.0030.0235.82
4.4.20.0030.0205.89
4.4.10.0100.0235.90
4.4.00.0070.0335.90
4.3.110.0000.0335.77
4.3.100.0030.0205.78
4.3.90.0070.0175.72
4.3.80.0030.0405.72
4.3.70.0000.0205.80
4.3.60.0030.0205.73
4.3.50.0100.0235.76
4.3.40.0000.0475.68
4.3.30.0000.0205.46
4.3.20.0000.0235.46
4.3.10.0000.0305.46
4.3.00.0100.0177.17

preferences:
142.6 ms | 1394 KiB | 7 Q