3v4l.org

run code in 300+ PHP versions simultaneously
<?php function output($output) { if ($output == 'error') { throw new \Exception('An error occurred.'); } echo $output; } @output('error'); @output('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.0090.00616.63
8.3.50.0100.00821.20
8.3.40.0040.01118.88
8.3.30.0040.01118.81
8.3.20.0040.00419.98
8.3.10.0040.00423.61
8.3.00.0060.00323.48
8.2.180.0090.00616.38
8.2.170.0070.00722.96
8.2.160.0030.01020.24
8.2.150.0050.00225.66
8.2.140.0080.00024.66
8.2.130.0030.00519.64
8.2.120.0040.00426.35
8.2.110.0090.00019.30
8.2.100.0120.00018.03
8.2.90.0030.00619.28
8.2.80.0080.00017.97
8.2.70.0000.00917.75
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0060.00320.60
8.2.30.0050.00320.50
8.2.20.0030.00517.75
8.2.10.0000.00718.00
8.2.00.0040.00418.06
8.1.280.0070.01425.92
8.1.270.0060.00323.79
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0030.00621.16
8.1.230.0040.00817.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0050.00318.54
8.1.160.0040.00420.61
8.1.150.0040.00418.70
8.1.140.0050.00319.40
8.1.130.0000.00717.65
8.1.120.0040.00417.38
8.1.110.0050.00217.36
8.1.100.0030.00517.29
8.1.90.0000.00717.27
8.1.80.0030.00417.38
8.1.70.0040.00417.30
8.1.60.0050.00317.55
8.1.50.0000.00817.52
8.1.40.0050.00317.50
8.1.30.0000.00817.60
8.1.20.0000.00817.60
8.1.10.0030.00517.50
8.1.00.0000.00817.49
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0040.00418.49
8.0.270.0030.00317.26
8.0.260.0040.00417.25
8.0.250.0030.00317.06
8.0.240.0070.00017.05
8.0.230.0030.00316.90
8.0.220.0030.00317.01
8.0.210.0070.00016.91
8.0.200.0030.00316.98
8.0.190.0000.00816.94
8.0.180.0080.00016.96
8.0.170.0050.00517.00
8.0.160.0000.00717.01
8.0.150.0040.00316.91
8.0.140.0070.00016.79
8.0.130.0000.00513.43
8.0.120.0050.00216.93
8.0.110.0040.00416.93
8.0.100.0040.00416.76
8.0.90.0000.00816.84
8.0.80.0060.00916.96
8.0.70.0000.00817.02
8.0.60.0000.00716.83
8.0.50.0040.00416.84
8.0.30.0120.00716.97
8.0.20.0140.00717.40
8.0.10.0040.00416.91
8.0.00.0090.01016.78
7.4.330.0030.00316.85
7.4.320.0030.00316.39
7.4.300.0060.00016.54
7.4.290.0000.00716.55
7.4.280.0070.00316.34
7.4.270.0030.00316.45
7.4.260.0040.00416.39
7.4.250.0050.00216.41
7.4.240.0020.00516.47
7.4.230.0000.00716.56
7.4.220.0090.01216.34
7.4.210.0030.01116.52
7.4.200.0040.00316.54
7.4.160.0120.00416.42
7.4.150.0030.01417.40
7.4.140.0070.01117.86
7.4.130.0140.00516.61
7.4.120.0120.00616.63
7.4.110.0070.01116.52
7.4.100.0150.00316.53
7.4.90.0140.00316.32
7.4.80.0110.00719.39
7.4.70.0120.00916.64
7.4.60.0030.01416.68
7.4.50.0100.00716.71
7.4.40.0090.01416.50
7.4.30.0120.00416.42
7.4.00.0070.01014.84
7.3.330.0000.00513.14
7.3.320.0000.00513.37
7.3.310.0030.00316.25
7.3.300.0000.00716.38
7.3.290.0000.00716.48
7.3.280.0070.01016.30
7.3.270.0050.01317.40
7.3.260.0090.01416.62
7.3.250.0110.00616.41
7.3.240.0100.00816.47
7.3.230.0110.00716.44
7.3.210.0060.01416.45
7.3.200.0170.00019.39
7.3.190.0080.00816.37
7.3.180.0060.01216.59
7.3.170.0110.00616.52
7.3.160.0070.01116.37
7.3.120.0060.00814.97
7.3.110.0050.01214.85
7.3.100.0050.00914.93
7.3.90.0030.00814.96
7.3.80.0100.00414.71
7.3.70.0030.01114.79
7.3.60.0050.00714.60
7.3.50.0060.00814.86
7.3.40.0050.00814.93
7.3.30.0070.00614.83
7.3.20.0050.00716.65
7.3.10.0060.00716.62
7.3.00.0050.00716.73
7.2.330.0040.01316.60
7.2.320.0060.01116.66
7.2.310.0140.00316.68
7.2.300.0060.01016.55
7.2.290.0090.00616.78
7.2.250.0110.00715.15
7.2.240.0060.01315.06
7.2.230.0050.01015.02
7.2.220.0040.01114.80
7.2.210.0050.01014.84
7.2.200.0050.00914.93
7.2.190.0050.00714.88
7.2.180.0050.00715.00
7.2.170.0080.00514.72
7.2.130.0000.01116.93
7.2.120.0070.00716.95
7.2.110.0120.00316.82
7.2.100.0100.00716.88
7.2.90.0130.00016.77
7.2.80.0070.00716.78
7.2.70.0060.00916.95
7.2.60.0020.01016.90
7.2.50.0030.01016.77
7.2.40.0060.00616.63
7.2.30.0040.00816.66
7.2.20.0090.00616.93
7.2.10.0130.00017.00
7.2.00.0080.00718.01
7.1.330.0070.00715.69
7.1.320.0050.00715.84
7.1.310.0060.00515.55
7.1.300.0040.00815.68
7.1.290.0050.00915.71
7.1.280.0070.00615.51
7.1.270.0080.00415.67
7.1.260.0090.00315.77
7.1.250.0090.00315.68
7.1.200.0060.00615.84
7.1.100.0030.01118.14
7.1.70.0040.00417.28
7.1.60.0070.01519.21
7.1.50.0100.01416.66
7.1.00.0030.07722.45
7.0.200.0060.00316.57
7.0.60.0030.04021.67
7.0.50.0130.04717.91
7.0.40.0100.07720.27
7.0.30.0370.06320.07
7.0.20.0300.07320.09
7.0.10.0100.08320.24
7.0.00.0100.03720.23
5.6.280.0030.06020.89
5.6.210.0000.05020.76
5.6.200.0100.07318.19
5.6.190.0070.08320.77
5.6.180.0400.05720.41
5.6.170.0400.04320.54
5.6.160.0130.07720.54
5.6.150.0070.04018.18
5.6.140.0100.04018.11
5.6.130.0030.05018.16
5.6.120.0070.08321.09
5.6.110.0030.09021.14
5.6.100.0100.08020.98
5.6.90.0130.08321.11
5.6.80.0000.09020.49
5.5.350.0130.08320.38
5.5.340.0100.05718.03
5.5.330.0130.07320.29
5.5.320.0530.07020.27
5.5.310.0270.07720.34
5.5.300.0000.04317.97
5.5.290.0030.06017.97
5.5.280.0100.07720.63
5.5.270.0100.07320.89
5.5.260.0130.07720.87
5.5.250.0130.07320.65
5.5.240.0230.07020.27

preferences:
59.66 ms | 401 KiB | 5 Q