3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function test() { call_user_function([$this, 'test2']); } private function test2() { echo 'Yay'; } } $test = new Test(); $test->test();

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.0150.00016.71
8.3.50.0100.01021.10
8.3.40.0040.01218.78
8.3.30.0120.00618.73
8.3.20.0000.00720.16
8.3.10.0080.00021.91
8.3.00.0040.00421.90
8.2.180.0150.00016.88
8.2.170.0070.00722.96
8.2.160.0110.00420.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00320.65
8.2.120.0070.00026.35
8.2.110.0070.00322.38
8.2.100.0120.00317.78
8.2.90.0000.00819.17
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0000.00917.92
8.2.50.0060.00318.09
8.2.40.0040.00420.60
8.2.30.0040.00419.37
8.2.20.0000.00717.68
8.2.10.0040.00417.87
8.2.00.0000.00717.92
8.1.280.0150.00625.92
8.1.270.0190.00022.20
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00020.85
8.1.230.0030.00920.97
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0000.00718.67
8.1.160.0050.00220.69
8.1.150.0050.00218.73
8.1.140.0040.00419.55
8.1.130.0030.00317.54
8.1.120.0030.00317.37
8.1.110.0000.00717.41
8.1.100.0000.00817.38
8.1.90.0000.00917.29
8.1.80.0000.00717.35
8.1.70.0000.00817.27
8.1.60.0040.00417.52
8.1.50.0030.00617.50
8.1.40.0060.00317.47
8.1.30.0000.00817.56
8.1.20.0040.00417.62
8.1.10.0040.00417.43
8.1.00.0030.00617.46
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0000.00717.20
8.0.260.0030.00317.19
8.0.250.0030.00316.94
8.0.240.0080.00016.91
8.0.230.0000.00816.92
8.0.220.0040.00416.93
8.0.210.0050.00316.78
8.0.200.0030.00316.94
8.0.190.0050.00216.95
8.0.180.0070.00016.93
8.0.170.0000.00816.84
8.0.160.0000.00816.84
8.0.150.0030.00316.73
8.0.140.0070.00016.80
8.0.130.0060.00313.33
8.0.120.0050.00316.74
8.0.110.0020.00516.90
8.0.100.0000.00816.70
8.0.90.0070.00016.95
8.0.80.0030.01216.93
8.0.70.0020.00516.79
8.0.60.0040.00416.80
8.0.50.0040.00416.75
8.0.30.0130.00917.06
8.0.20.0120.00917.42
8.0.10.0050.00316.89
8.0.00.0120.00616.81
7.4.330.0050.00016.74
7.4.320.0040.00416.37
7.4.300.0050.00316.42
7.4.290.0070.00016.45
7.4.280.0100.00016.50
7.4.270.0030.00316.43
7.4.260.0070.00016.49
7.4.250.0000.00816.41
7.4.240.0040.00416.43
7.4.230.0000.00716.28
7.4.220.0070.01416.43
7.4.210.0110.00616.49
7.4.200.0030.00316.36
7.4.160.0030.01216.63
7.4.150.0110.00817.40
7.4.140.0140.00817.86
7.4.130.0100.01016.36
7.4.120.0090.00816.39
7.4.110.0120.01216.38
7.4.100.0110.00516.54
7.4.90.0030.01316.55
7.4.80.0130.00319.39
7.4.70.0070.01416.28
7.4.60.0080.00816.44
7.4.50.0070.01016.41
7.4.40.0150.00816.46
7.4.30.0120.01216.62
7.4.00.0040.00414.94
7.3.330.0000.00713.22
7.3.320.0030.00313.33
7.3.310.0070.00016.48
7.3.300.0030.00316.36
7.3.290.0040.00416.23
7.3.280.0080.01116.37
7.3.270.0110.00617.40
7.3.260.0170.00016.43
7.3.250.0110.00616.43
7.3.240.0070.00916.46
7.3.230.0180.00016.39
7.3.210.0120.00616.30
7.3.200.0140.00419.39
7.3.190.0050.01116.37
7.3.180.0090.00616.42
7.3.170.0120.00616.56
7.3.160.0060.01616.38
7.2.330.0070.01116.55
7.2.320.0070.01116.50
7.2.310.0000.01616.22
7.2.300.0080.00816.28
7.2.290.0110.01116.60
7.2.60.0000.01216.75
7.2.00.0030.01018.92
7.1.200.0110.00315.58
7.1.100.0050.00517.77
7.1.70.0030.00517.15
7.1.60.0040.01519.40
7.1.50.0080.01116.80
7.1.00.0030.07322.51
7.0.200.0330.00414.53
7.0.60.0300.06321.71
7.0.50.0200.06717.86
7.0.40.0130.05720.27
7.0.30.0370.04720.09
7.0.20.0230.06720.30
7.0.10.0030.06720.09
7.0.00.0070.07720.13
5.6.280.0070.07021.14
5.6.210.0030.06320.47
5.6.200.0170.07718.19
5.6.190.0030.04320.67
5.6.180.0130.03720.48
5.6.170.0300.07320.51
5.6.160.0070.06020.39
5.6.150.0030.07718.19
5.6.140.0030.07718.18
5.6.130.0100.07718.28
5.6.120.0170.06321.10
5.6.110.0100.08321.02
5.6.100.0070.07721.13
5.6.90.0200.06320.99
5.6.80.0070.04020.50
5.5.350.0100.05020.44
5.5.340.0200.03718.02
5.5.330.0070.04020.57
5.5.320.0200.06020.27
5.5.310.0100.04720.30
5.5.300.0030.06318.08
5.5.290.0000.04717.95
5.5.280.0000.05720.89
5.5.270.0030.09320.89
5.5.260.0170.07020.73
5.5.250.0100.07720.70
5.5.240.4300.03720.07

preferences:
50.03 ms | 401 KiB | 5 Q