3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace u{class c2{functionc2(){echo'constructor2';}};$y=new c2;} namespace{class c1{function c1(){echo'constructor1';}};$x=new c1;}

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.340.2530.03719.20
5.4.320.2570.03718.84
5.4.310.2600.04018.95
5.4.300.2670.04319.08
5.4.290.2570.03719.19
5.4.280.2400.04719.24
5.4.270.2370.03019.08
5.4.260.2330.04018.98
5.4.250.1970.04019.05
5.4.240.2700.03719.31
5.4.230.2330.03719.16
5.4.220.2500.03319.13
5.4.210.2300.04318.99
5.4.200.2330.03719.06
5.4.190.2330.04019.23
5.4.180.2700.04319.08
5.4.170.2670.03718.83
5.4.160.2770.04318.93
5.4.150.1800.03719.13
5.4.140.0070.03316.35
5.4.130.0130.04716.33
5.4.120.0030.03316.65
5.4.110.1800.04316.67
5.4.100.2600.03716.54
5.4.90.2570.03316.55
5.4.80.2570.03716.45
5.4.70.2630.04016.54
5.4.60.2570.03716.49
5.4.50.2570.03716.34
5.4.40.2370.02716.56
5.4.30.2230.04716.43
5.4.20.2630.03716.55
5.4.10.2470.03016.61
5.4.00.2570.03715.75
5.3.290.2500.04314.73
5.3.280.2530.04714.56
5.3.270.2600.05014.58
5.3.260.2630.04014.75
5.3.250.2570.03714.60
5.3.240.2500.04014.50
5.3.230.2600.04014.58
5.3.220.2600.04014.47
5.3.210.2600.03714.46
5.3.200.2630.04014.47
5.3.190.2630.04014.43
5.3.180.2170.03314.64
5.3.170.2300.04014.78
5.3.160.2630.03714.64
5.3.150.2630.04014.54
5.3.140.2530.04014.52
5.3.130.2470.04714.46
5.3.120.2500.03714.46
5.3.110.2770.04014.65
5.3.100.2470.03313.96
5.3.90.2570.04014.07
5.3.80.2770.04714.02
5.3.70.2700.04713.94
5.3.60.2700.04013.90
5.3.50.2670.03314.16
5.3.40.2270.04313.91
5.3.30.2400.03713.88
5.3.20.2630.04313.66
5.3.10.2400.03713.58
5.3.00.2400.03013.71
5.2.170.1900.03311.00
5.2.160.2100.03711.09
5.2.150.2000.02711.16
5.2.140.2130.03011.03
5.2.130.1970.02710.95
5.2.120.1970.02311.27
5.2.110.2030.02711.00
5.2.100.1900.03010.99
5.2.90.1900.03010.96
5.2.80.2100.03011.18
5.2.70.2130.02711.11
5.2.60.2030.03011.13
5.2.50.2300.03310.95
5.2.40.1800.02011.17
5.2.30.1800.03311.12
5.2.20.1670.03010.89
5.2.10.1970.02710.77
5.2.00.1830.03710.57
5.1.60.1570.0239.93
5.1.50.1570.0209.93
5.1.40.1870.0209.90
5.1.30.1800.02710.23
5.1.20.1730.02710.27
5.1.10.1730.0279.96
5.1.00.1630.02010.00
5.0.50.0900.0209.84
5.0.40.1100.0239.84
5.0.30.1030.0309.84
5.0.20.0970.0309.84
5.0.10.0970.0279.84
5.0.00.1000.0409.84
4.4.90.0800.0139.84
4.4.80.0970.0239.84
4.4.70.1100.0209.84
4.4.60.1000.0179.84
4.4.50.1030.0209.84
4.4.40.1000.0279.84
4.4.30.0970.0209.84
4.4.20.0830.0239.84
4.4.10.1030.0179.84
4.4.00.0570.0279.84
4.3.110.0770.0179.84
4.3.100.0800.0139.84
4.3.90.0870.0209.84
4.3.80.0630.0209.84
4.3.70.0900.0139.84
4.3.60.0830.0209.84
4.3.50.0730.0179.84
4.3.40.0670.0279.84
4.3.30.0430.0109.84
4.3.20.0370.0179.84
4.3.10.0430.0139.84
4.3.00.0230.0139.84

preferences:
135.86 ms | 1394 KiB | 7 Q