3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function test(){echo 'test';} public static function a(){ $a = new self; $cb=array($a, 'test'); $cb(); } } A::a();

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)
8.3.60.0140.00316.75
8.3.50.0080.01222.83
8.3.40.0110.00418.69
8.3.30.0000.01419.08
8.3.20.0070.00020.16
8.3.10.0040.00423.45
8.3.00.0000.00819.38
8.2.180.0130.00716.50
8.2.170.0120.00322.96
8.2.160.0080.00820.39
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0020.00526.16
8.2.120.0040.00421.04
8.2.110.0030.00622.30
8.2.100.0060.00318.95
8.1.280.0150.00025.92
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00618.30
8.1.230.0090.00018.64
5.4.320.0100.04018.94
5.4.310.0130.07019.15
5.4.300.0000.05719.05
5.4.290.2600.03719.20
5.4.280.2870.03719.05
5.4.270.3230.03719.18
5.4.260.3200.04019.29
5.4.250.3200.03718.98
5.4.240.3430.04018.88
5.4.230.3230.03718.94
5.4.220.0030.04319.20
5.4.210.0000.04019.20
5.4.200.0630.03319.20
5.4.190.2000.03318.82
5.4.180.1730.03319.05
5.4.170.2430.03319.18
5.4.160.2430.03319.05
5.4.150.2430.02319.18
5.4.140.3030.04716.31
5.4.130.3200.03316.41
5.4.120.2470.04016.43
5.4.110.2500.03316.52
5.4.100.2600.04016.27
5.4.90.2770.03716.25
5.4.80.2400.03716.52
5.4.70.2870.03016.52
5.4.60.2530.03016.48
5.4.50.3070.03316.42
5.4.40.2700.03316.41
5.4.30.2800.03016.42
5.4.20.2530.03316.48
5.4.10.2330.03316.50
5.4.00.2430.02715.96
5.3.290.3230.04314.65
5.3.280.2870.04014.49
5.3.270.2900.03714.75
5.3.260.3000.03714.62
5.3.250.3000.03314.52
5.3.240.3070.03314.57
5.3.230.4070.03314.60
5.3.220.3070.04014.55
5.3.210.2730.03714.54
5.3.200.2970.03714.69
5.3.190.3100.03714.65
5.3.180.3030.03314.61
5.3.170.3030.03714.48
5.3.160.3070.03314.48
5.3.150.3070.03714.46
5.3.140.3530.03714.57
5.3.130.3270.04314.66
5.3.120.3100.04014.66
5.3.110.3170.03714.67
5.3.100.3200.03714.02
5.3.90.3100.04014.00
5.3.80.2800.04314.04
5.3.70.2970.03014.03
5.3.60.3200.03714.14
5.3.50.3000.03013.87
5.3.40.2900.03313.87
5.3.30.3130.03713.92
5.3.20.3100.03713.63
5.3.10.3070.03713.79
5.3.00.3400.03313.71
5.2.170.2800.02311.15
5.2.160.2670.03011.06
5.2.150.2670.03311.37
5.2.140.2700.03011.15
5.2.130.2700.02711.02
5.2.120.2700.02711.08
5.2.110.2630.03011.05
5.2.100.2800.03011.15
5.2.90.2700.03011.01
5.2.80.2730.02711.14
5.2.70.2430.02711.01
5.2.60.2870.03011.27
5.2.50.2730.02311.02
5.2.40.2330.02310.90
5.2.30.2130.02310.97
5.2.20.2270.02710.89
5.2.10.2170.03311.00
5.2.00.2170.03010.93
5.1.60.2270.02310.15
5.1.50.2100.0209.98
5.1.40.2170.02310.13
5.1.30.1970.02710.30
5.1.20.2100.02010.40
5.1.10.1970.03010.05
5.1.00.2300.02310.05
5.0.50.1030.0178.47
5.0.40.0930.0208.31
5.0.30.1070.0278.31
5.0.20.1100.0238.18
5.0.10.1030.0208.40
5.0.00.1200.0338.05
4.4.90.1170.0235.95
4.4.80.1170.0205.95
4.4.70.0870.0135.95
4.4.60.1000.0135.95
4.4.50.1000.0135.95
4.4.40.1170.0275.95
4.4.30.1170.0135.95
4.4.20.0800.0135.95
4.4.10.0030.0135.95
4.4.00.0030.0405.95
4.3.110.0000.0135.95
4.3.100.0030.0235.95
4.3.90.0000.0135.95
4.3.80.0000.0235.95
4.3.70.0000.0175.95
4.3.60.0030.0135.95
4.3.50.0070.0175.95
4.3.40.0000.0235.95
4.3.30.0000.0175.95
4.3.20.0530.0135.95
4.3.10.0570.0205.95
4.3.00.0600.0275.95

preferences:
24.08 ms | 401 KiB | 5 Q