3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function b() { echo '1'; } public static function foo() { static::b(); } } $test = new Test(); $test->foo();

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.0110.00718.30
8.3.50.0110.00316.50
8.3.40.0090.00618.71
8.3.30.0140.00018.67
8.3.20.0070.00020.29
8.3.10.0050.00221.74
8.3.00.0000.00819.98
8.2.180.0090.00918.38
8.2.170.0090.00622.96
8.2.160.0070.01020.35
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00421.00
8.2.120.0000.00726.35
8.2.110.0030.00622.24
8.2.100.0080.00417.78
8.2.90.0000.00817.84
8.2.80.0040.00419.42
8.2.70.0080.00017.93
8.2.60.0030.00517.80
8.2.50.0000.00918.10
8.2.40.0080.00022.32
8.2.30.0000.00719.22
8.2.20.0040.00417.88
8.2.10.0000.01117.96
8.2.00.0030.00318.07
8.1.280.0110.00725.92
8.1.270.0080.00020.33
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.19
8.1.230.0040.00720.72
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00517.22
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0070.00018.73
8.1.150.0040.00420.18
8.1.140.0000.00817.61
8.1.130.0030.00318.81
8.1.120.0000.00817.30
8.1.110.0050.00317.33
8.1.100.0000.00717.39
8.1.90.0080.00017.29
8.1.80.0000.00817.28
8.1.70.0000.00717.41
8.1.60.0040.00417.57
8.1.50.0080.00017.45
8.1.40.0000.00817.54
8.1.30.0060.00317.63
8.1.20.0050.00317.60
8.1.10.0050.00317.60
8.1.00.0000.00817.51
8.0.300.0050.00320.04
8.0.290.0000.00816.75
8.0.280.0060.00318.41
8.0.270.0040.00417.18
8.0.260.0030.00316.80
8.0.250.0000.00717.01
8.0.240.0050.00317.02
8.0.230.0000.00716.93
8.0.220.0040.00416.92
8.0.210.0070.00016.91
8.0.200.0030.00316.88
8.0.190.0030.00616.95
8.0.180.0000.00716.88
8.0.170.0030.00616.96
8.0.160.0080.00016.86
8.0.150.0040.00416.77
8.0.140.0060.00316.81
8.0.130.0060.00313.25
8.0.120.0000.00716.84
8.0.110.0040.00416.84
8.0.100.0050.00316.89
8.0.90.0000.00816.84
8.0.80.0070.01316.81
8.0.70.0000.00716.70
8.0.60.0040.00416.84
8.0.50.0020.00517.00
8.0.30.0070.01217.11
8.0.20.0130.00617.40
8.0.10.0050.00216.84
8.0.00.0080.01216.69
7.4.330.0020.00215.55
7.4.320.0030.00316.43
7.4.300.0030.00316.48
7.4.290.0060.00316.37
7.4.280.0070.00016.40
7.4.270.0080.00016.50
7.4.260.0000.00716.55
7.4.250.0040.00416.47
7.4.240.0070.00016.51
7.4.230.0070.00016.63
7.4.220.0040.00416.39
7.4.210.0000.01416.63
7.4.200.0030.00316.48
7.4.160.0100.00716.48
7.4.150.0000.01817.40
7.4.140.0110.01017.86
7.4.130.0150.00316.50
7.4.120.0110.00916.60
7.4.110.0070.01016.68
7.4.100.0100.01316.49
7.4.90.0090.00916.41
7.4.80.0160.00619.39
7.4.70.0120.00616.65
7.4.60.0070.01016.59
7.4.50.0090.00616.46
7.4.40.0080.00916.46
7.4.00.0000.01614.87
7.3.330.0020.00213.29
7.3.320.0000.00713.30
7.3.310.0000.00716.17
7.3.300.0000.00616.30
7.3.290.0080.00616.30
7.3.280.0040.01016.22
7.3.270.0030.01317.40
7.3.260.0100.00816.27
7.3.250.0110.00716.39
7.3.240.0070.01116.37
7.3.230.0170.00316.26
7.3.210.0090.00916.26
7.3.200.0140.00316.29
7.3.190.0100.00716.36
7.3.180.0060.00916.38
7.3.170.0080.00816.48
7.3.160.0100.00616.34
7.2.330.0110.00716.56
7.2.320.0070.01416.72
7.2.310.0000.01616.77
7.2.300.0120.00616.30
7.2.290.0100.00716.70
7.2.60.0130.00616.98
7.2.10.0240.00917.46
7.2.00.0220.01217.71
7.1.200.0030.00915.57
7.1.130.0200.01316.45
7.1.120.0210.00716.38
7.1.110.0220.00616.19
7.1.100.0230.00715.93
7.1.90.0770.00315.75
7.1.80.0300.00715.62
7.1.70.0270.00615.24
7.1.60.0310.01333.13
7.1.50.0370.01032.59
7.1.40.0340.01032.44
7.1.30.0350.01632.57
7.1.20.0380.00732.62
7.1.10.0220.01314.35
7.1.00.0260.01014.68

preferences:
55.26 ms | 400 KiB | 5 Q