3v4l.org

run code in 300+ PHP versions simultaneously
<?php class App { function test($function) { echo 1; throw new Exception('test'); } } $app = new App(); $app->test(function() use ($app){ echo 2; });

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.0100.01016.63
8.3.50.0090.00616.50
8.3.40.0110.00418.86
8.3.30.0110.00318.69
8.3.20.0040.00420.38
8.3.10.0040.00421.75
8.3.00.0000.00723.59
8.2.180.0110.01116.38
8.2.170.0140.00322.96
8.2.160.0100.00320.57
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00419.76
8.2.120.0000.00826.35
8.2.110.0110.00722.23
8.2.100.0000.01217.80
8.2.90.0000.00819.00
8.2.80.0030.00517.97
8.2.70.0120.00317.75
8.2.60.0050.00318.04
8.2.50.0000.00818.07
8.2.40.0120.00020.07
8.2.30.0070.00019.44
8.2.20.0040.00417.68
8.2.10.0050.00318.13
8.2.00.0040.00417.97
8.1.280.0070.01325.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0020.00528.09
8.1.240.0030.00622.55
8.1.230.0000.01119.20
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0060.00317.25
8.1.190.0040.00417.13
8.1.180.0050.00318.10
8.1.170.0000.00818.65
8.1.160.0070.00020.76
8.1.150.0000.00818.85
8.1.140.0050.00319.48
8.1.130.0000.00717.81
8.1.120.0000.00717.34
8.1.110.0000.00717.42
8.1.100.0040.00417.46
8.1.90.0040.00417.36
8.1.80.0070.00017.49
8.1.70.0000.00717.38
8.1.60.0000.00817.49
8.1.50.0090.00017.42
8.1.40.0040.00417.50
8.1.30.0040.00417.60
8.1.20.0000.00817.54
8.1.10.0070.00017.54
8.1.00.0060.00317.49
8.0.300.0020.00518.77
8.0.290.0000.00816.75
8.0.280.0030.00318.45
8.0.270.0030.00317.27
8.0.260.0070.00017.29
8.0.250.0030.00317.05
8.0.240.0040.00416.95
8.0.230.0050.00216.96
8.0.220.0000.00716.91
8.0.210.0030.00316.91
8.0.200.0030.00616.95
8.0.190.0040.00416.98
8.0.180.0040.00416.96
8.0.170.0030.00616.88
8.0.160.0070.00016.96
8.0.150.0040.00416.79
8.0.140.0050.00316.78
8.0.130.0030.00313.39
8.0.120.0040.00416.82
8.0.110.0030.00516.79
8.0.100.0070.00016.87
8.0.90.0020.00516.94
8.0.80.0150.00016.84
8.0.70.0070.00016.95
8.0.60.0070.00016.94
8.0.50.0050.00317.00
8.0.30.0110.00617.22
8.0.20.0060.01117.40
8.0.10.0000.00716.97
8.0.00.0130.00816.85
7.4.330.0050.00016.82
7.4.320.0000.00716.41
7.4.300.0000.00716.57
7.4.290.0060.00516.64
7.4.280.0030.00616.59
7.4.270.0030.00316.59
7.4.260.0070.00016.48
7.4.250.0040.00416.36
7.4.240.0030.00316.47
7.4.230.0030.00316.45
7.4.220.0110.00716.49
7.4.210.0040.01016.60
7.4.200.0030.00316.60
7.4.160.0170.00316.49
7.4.150.0030.01317.40
7.4.140.0160.00117.86
7.4.130.0100.01016.56
7.4.120.0020.01616.53
7.4.110.0110.00716.46
7.4.100.0150.00916.55
7.4.90.0090.01216.63
7.4.80.0120.00619.39
7.4.70.0090.00916.56
7.4.60.0100.00616.48
7.4.50.0040.01416.31
7.4.40.0130.00316.57
7.4.30.0050.01416.36
7.4.00.0000.00814.95
7.3.330.0030.00313.19
7.3.320.0030.00313.38
7.3.310.0040.00416.34
7.3.300.0070.00016.24
7.3.290.0030.00316.30
7.3.280.0100.00516.36
7.3.270.0070.01117.40
7.3.260.0100.00716.29
7.3.250.0080.01016.42
7.3.240.0080.00916.52
7.3.230.0130.00716.44
7.3.210.0070.01016.54
7.3.200.0100.00719.39
7.3.190.0070.01016.46
7.3.180.0000.01716.57
7.3.170.0080.00816.51
7.3.160.0130.00616.39
7.2.330.0070.01716.77
7.2.320.0140.01216.75
7.2.310.0060.00916.72
7.2.300.0050.01116.37
7.2.290.0100.00616.61
7.2.60.0040.00716.66
7.2.00.0060.01019.50
7.1.200.0040.01215.97
7.1.100.0030.00718.21
7.1.70.0030.00617.26
7.1.60.0170.00719.30
7.1.50.0110.00017.00
7.1.00.0000.08022.50
7.0.200.0070.00316.88
7.0.60.0230.07721.56
7.0.50.0100.04317.88
7.0.40.0200.03020.18
7.0.30.0130.04320.13
7.0.20.0370.07320.30
7.0.10.0030.04320.15
7.0.00.0030.05320.12
5.6.280.0030.06320.87
5.6.210.0100.05020.75
5.6.200.0000.04718.12
5.6.190.0000.05020.57
5.6.180.0330.07020.49
5.6.170.0200.04320.51
5.6.160.0100.04020.52
5.6.150.0030.04018.23
5.6.140.0070.06318.25
5.6.130.0030.08018.24
5.6.120.0070.08321.03
5.6.110.0030.07721.02
5.6.100.0000.09021.01
5.6.90.0030.04320.98
5.6.80.0100.07020.36
5.5.350.0130.04320.45
5.5.340.0030.04018.09
5.5.330.0070.08320.35
5.5.320.0300.06020.30
5.5.310.0270.07720.28
5.5.300.0000.04017.95
5.5.290.0030.05018.01
5.5.280.0170.06720.85
5.5.270.0070.03720.68
5.5.260.0130.04020.82
5.5.250.0130.07320.71
5.5.240.0100.08020.12

preferences:
58.8 ms | 400 KiB | 5 Q