3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct() { } public static function first() { return new static(); } public static function second() { return new self(); } } var_dump(A::first()); var_dump(A::second())

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.290.1930.04019.13
5.4.280.1830.04319.09
5.4.270.1730.03319.30
5.4.260.2030.04319.20
5.4.250.2030.03719.16
5.4.240.1930.05018.99
5.4.230.1730.03719.30
5.4.220.1700.04018.94
5.4.210.1800.03019.16
5.4.200.2000.04319.14
5.4.190.1700.03319.19
5.4.180.2000.04019.30
5.4.170.1900.03719.30
5.4.160.1970.04319.29
5.4.150.1970.04719.16
5.4.140.1870.04316.54
5.4.130.1730.03316.40
5.4.120.1770.03316.40
5.4.110.1870.02716.41
5.4.100.1700.03716.56
5.4.90.1900.03316.61
5.4.80.1830.02716.58
5.4.70.2100.03316.56
5.4.60.2000.04316.49
5.4.50.1770.04016.55
5.4.40.1870.03716.43
5.4.30.1870.03716.48
5.4.20.1830.03316.39
5.4.10.1770.04016.25
5.4.00.1700.04715.86
5.3.280.1900.04014.57
5.3.270.2030.04014.52
5.3.260.1830.04314.54
5.3.250.2000.04314.63
5.3.240.1730.04714.75
5.3.230.1830.05014.57
5.3.220.1730.04014.66
5.3.210.1770.03314.57
5.3.200.1930.04014.55
5.3.190.1770.04714.47
5.3.180.1900.04314.79
5.3.170.1830.03714.49
5.3.160.1930.04314.45
5.3.150.1730.03714.57
5.3.140.1970.04714.61
5.3.130.1970.04314.66
5.3.120.1970.04714.54
5.3.110.1870.03314.70
5.3.100.1970.04714.03
5.3.90.1700.03713.92
5.3.80.1970.04313.95
5.3.70.1800.03713.97
5.3.60.2070.03714.07
5.3.50.1830.03714.04
5.3.40.2000.04314.04
5.3.30.1770.04014.06
5.3.20.1730.03313.77
5.3.10.1700.03713.89
5.3.00.1970.04313.66
5.2.170.1400.03311.07
5.2.160.1730.03311.39
5.2.150.1730.03311.23
5.2.140.1570.03011.06
5.2.130.1730.03011.18
5.2.120.1730.03311.11
5.2.110.1530.03311.03
5.2.100.1870.03311.22
5.2.90.1670.03711.16
5.2.80.1570.03311.02
5.2.70.1630.03311.14
5.2.60.1570.03011.02
5.2.50.1730.03310.93
5.2.40.1300.03311.08
5.2.30.1270.03010.88
5.2.20.1200.03310.88
5.2.10.1270.02710.79
5.2.00.1200.03010.94
5.1.60.1400.03010.08
5.1.50.1500.03010.15
5.1.40.1270.0279.91
5.1.30.1230.02710.56
5.1.20.1300.03310.21
5.1.10.0030.0479.95
5.1.00.0070.0209.95
5.0.50.0030.0208.60
5.0.40.0070.0338.39
5.0.30.0030.0338.13
5.0.20.0170.0278.11
5.0.10.0770.0238.32
5.0.00.0770.0478.11
4.4.90.0600.0178.11
4.4.80.0600.0178.11
4.4.70.0630.0138.11
4.4.60.0600.0178.11
4.4.50.0630.0208.11
4.4.40.0600.0238.11
4.4.30.0670.0108.11
4.4.20.0730.0238.11
4.4.10.0700.0278.11
4.4.00.0770.0378.11
4.3.110.0730.0208.11
4.3.100.0830.0238.11
4.3.90.0800.0238.11
4.3.80.0770.0378.11
4.3.70.0500.0308.11
4.3.60.0600.0138.11
4.3.50.0870.0178.11
4.3.40.0630.0238.11
4.3.30.0300.0178.11
4.3.20.0500.0238.11
4.3.10.0300.0178.11
4.3.00.0300.0178.11

preferences:
159.4 ms | 1394 KiB | 7 Q