3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Abs { public function __toString() { return strtolower((new \ReflectionClass($this))->getShortName())"; // Should print test, not abs :P } } class Test extends Abs { } $x = new Test; echo $x;

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.310.0100.04019.15
5.4.300.1130.05018.87
5.4.290.1870.04719.16
5.4.280.2000.03319.23
5.4.270.1930.04019.09
5.4.260.1900.02719.14
5.4.250.1970.04019.08
5.4.240.1970.04319.23
5.4.230.1200.04018.94
5.4.220.0030.07718.82
5.4.210.0070.04019.30
5.4.200.1700.04718.88
5.4.190.1930.04019.07
5.4.180.1830.03019.08
5.4.170.1770.03319.12
5.4.160.1930.04319.05
5.4.150.1900.04019.14
5.4.140.1830.04016.34
5.4.130.2070.07016.49
5.4.120.2000.03716.52
5.4.110.1270.03716.16
5.4.100.0100.07716.57
5.4.90.0030.07016.37
5.4.80.1130.03316.34
5.4.70.2000.04316.18
5.4.60.1930.04716.53
5.4.50.2000.04316.33
5.4.40.2000.06016.50
5.4.30.1800.03016.52
5.4.20.2100.04316.57
5.4.10.1730.03716.48
5.4.00.2030.03716.11
5.3.280.1270.04714.51
5.3.270.0000.04014.61
5.3.260.0100.06314.68
5.3.250.0330.03714.68
5.3.240.2030.05314.62
5.3.230.1930.03714.58
5.3.220.2030.05014.56
5.3.210.1970.04314.49
5.3.200.2000.03314.79
5.3.190.2030.04314.48
5.3.180.1930.04314.54
5.3.170.1830.03714.61
5.3.160.2170.04014.68
5.3.150.1470.04314.55
5.3.140.0100.03014.66
5.3.130.0070.04314.62
5.3.120.1430.05714.69
5.3.110.2170.05014.52
5.3.100.1830.04013.95
5.3.90.1800.03713.93
5.3.80.2130.04013.98
5.3.70.1800.04014.25
5.3.60.1800.03314.09
5.3.50.1900.03013.92
5.3.40.1700.04313.88
5.3.30.1770.03713.91
5.3.20.1630.03713.66
5.3.10.1900.03013.55
5.3.00.2170.04313.65
5.2.170.1830.02711.26
5.2.160.1470.03311.05
5.2.150.1530.03011.15
5.2.140.1470.03711.06
5.2.130.1570.02711.13
5.2.120.1530.02711.08
5.2.110.1670.03311.21
5.2.100.1700.03011.01
5.2.90.1700.02711.11
5.2.80.1870.03311.00
5.2.70.1470.02711.00
5.2.60.0170.03311.14
5.2.50.0000.04011.13
5.2.40.0030.02710.91
5.2.30.0100.02711.09
5.2.20.0000.03710.93
5.2.10.1170.02711.09
5.2.00.1130.03010.71
5.1.60.1170.02010.22
5.1.50.1330.0279.93
5.1.40.1370.03010.05
5.1.30.1200.02310.25
5.1.20.1400.03310.41
5.1.10.1370.03010.19
5.1.00.1370.02310.20
5.0.50.0670.0208.48
5.0.40.0670.0238.34
5.0.30.0670.0338.38
5.0.20.0630.0238.20
5.0.10.0630.0278.32
5.0.00.0600.0308.14
4.4.90.0730.0237.99
4.4.80.0570.0177.99
4.4.70.0000.0177.99
4.4.60.0000.0307.99
4.4.50.0000.0207.99
4.4.40.0000.0277.99
4.4.30.0030.0137.99
4.4.20.0000.0207.99
4.4.10.0000.0307.99
4.4.00.0070.0207.99
4.3.110.0200.0307.99
4.3.100.0570.0177.99
4.3.90.0730.0177.99
4.3.80.0570.0237.99
4.3.70.0570.0177.99
4.3.60.0600.0137.99
4.3.50.0700.0177.99
4.3.40.0730.0307.99
4.3.30.0430.0237.99
4.3.20.0370.0177.99
4.3.10.0430.0177.99
4.3.00.0430.0337.99

preferences:
144.01 ms | 1394 KiB | 7 Q