3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tries = 0; try { a: $tries++; throw new \Exception(sprintf('Tried %d time(s)', $tries)); } catch(\Exception $exception) { echo $exception->getMessage() . "\n"; if($tries > 4) { goto b; } goto a; } b: echo 'Finished\n';

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.00716.63
8.3.50.0070.01116.51
8.3.40.0100.00718.80
8.3.30.0090.00618.67
8.3.20.0080.00021.92
8.3.10.0080.00023.66
8.3.00.0040.00419.91
8.2.180.0060.00916.75
8.2.170.0110.00322.96
8.2.160.0110.00421.19
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00720.53
8.2.120.0080.00026.35
8.2.110.0090.00022.11
8.2.100.0100.00618.03
8.2.90.0000.00819.23
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0050.00218.04
8.2.50.0090.00018.10
8.2.40.0040.00420.57
8.2.30.0000.00719.18
8.2.20.0040.00418.04
8.2.10.0050.00218.07
8.2.00.0040.00417.99
8.1.280.0060.00925.92
8.1.270.0060.00322.14
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0060.00323.92
8.1.230.0060.00617.45
8.1.220.0050.00317.79
8.1.210.0030.00618.77
8.1.200.0000.00917.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0050.00318.63
8.1.160.0040.00418.93
8.1.150.0040.00422.00
8.1.140.0030.00619.54
8.1.130.0000.00717.34
8.1.120.0030.00317.47
8.1.110.0040.00417.46
8.1.100.0000.00817.46
8.1.90.0030.00517.47
8.1.80.0000.00717.45
8.1.70.0070.00017.31
8.1.60.0030.00917.59
8.1.50.0000.00817.36
8.1.40.0050.00317.45
8.1.30.0040.00417.66
8.1.20.0090.00017.67
8.1.10.0000.00717.52
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0070.00018.44
8.0.270.0030.00317.32
8.0.260.0000.00716.88
8.0.250.0000.00717.05
8.0.240.0000.00716.97
8.0.230.0030.00617.05
8.0.220.0030.00316.97
8.0.210.0000.00716.93
8.0.200.0030.00316.94
8.0.190.0060.00316.91
8.0.180.0030.00516.95
8.0.170.0000.00716.86
8.0.160.0000.00716.91
8.0.150.0070.00416.93
8.0.140.0070.00016.93
8.0.130.0040.00313.40
8.0.120.0000.00816.94
8.0.110.0000.00716.93
8.0.100.0060.00316.80
8.0.90.0040.00416.98
8.0.80.0030.01116.96
8.0.70.0050.00516.93
8.0.60.0050.00316.73
8.0.50.0030.00416.75
8.0.30.0090.00917.00
8.0.20.0100.01117.40
8.0.10.0030.00517.14
8.0.00.0030.01316.83
7.4.330.0030.00315.55
7.4.320.0070.00016.62
7.4.300.0000.00616.58
7.4.290.0050.00216.60
7.4.280.0030.00516.45
7.4.270.0030.00316.61
7.4.260.0030.00316.50
7.4.250.0000.00716.60
7.4.240.0070.00016.61
7.4.230.0000.00816.70
7.4.220.0120.00616.53
7.4.210.0000.01516.41
7.4.200.0000.00716.50
7.4.160.0090.00616.53
7.4.150.0090.00917.40
7.4.140.0100.00917.86
7.4.130.0090.00916.46
7.4.120.0110.01116.45
7.4.110.0100.00716.41
7.4.100.0070.01216.60
7.4.90.0070.01016.55
7.4.80.0150.00319.39
7.4.70.0050.01116.64
7.4.60.0120.00516.62
7.4.50.0090.00616.47
7.4.40.0130.00316.53
7.4.30.0070.01016.38
7.4.00.0100.00715.09
7.3.330.0000.00713.23
7.3.320.0000.00513.04
7.3.310.0040.00416.16
7.3.300.0000.00716.32
7.3.290.0090.00816.36
7.3.280.0050.01116.32
7.3.270.0100.00717.40
7.3.260.0140.00316.52
7.3.250.0090.01116.43
7.3.240.0100.01216.30
7.3.230.0110.00616.33
7.3.210.0030.01316.38
7.3.200.0070.01016.63
7.3.190.0060.01816.64
7.3.180.0120.00416.70
7.3.170.0030.01216.55
7.3.160.0070.01016.49
7.3.120.0060.01014.91
7.3.110.0100.00714.63
7.3.100.0060.01214.74
7.3.90.0100.00314.64
7.3.80.0080.00414.88
7.3.70.0030.01014.85
7.3.60.0040.00914.66
7.3.50.0030.01014.84
7.3.40.0070.00714.71
7.3.30.0000.01014.77
7.3.20.0080.00816.78
7.3.10.0040.00716.41
7.3.00.0000.00916.69
7.2.330.0070.01016.70
7.2.320.0130.00316.57
7.2.310.0100.00616.75
7.2.300.0090.00916.63
7.2.290.0060.01116.81
7.2.250.0030.01215.12
7.2.240.0100.01015.29
7.2.230.0100.00315.07
7.2.220.0100.00714.89
7.2.210.0040.01014.67
7.2.200.0060.01015.21
7.2.190.0080.00415.11
7.2.180.0060.00615.27
7.2.170.0030.00615.05
7.2.00.0060.00619.41
7.1.330.0030.01015.62
7.1.320.0030.01015.91
7.1.310.0070.00715.72
7.1.300.0070.01015.80
7.1.290.0060.00615.89
7.1.280.0030.00515.70
7.1.270.0040.00715.55
7.1.260.0030.01415.89
7.1.100.0040.00717.94
7.1.70.0070.00017.22
7.1.60.2870.01033.34
7.1.50.3070.01733.05
7.1.40.0230.00732.50
7.1.30.0400.01732.75
7.1.20.3400.00732.75
7.1.10.0170.01314.59
7.1.00.0070.01014.74
7.0.200.2170.00715.01
7.0.190.1070.01314.98
7.0.180.0070.01014.48
7.0.170.1200.00014.63
7.0.160.1070.01314.47
7.0.150.0070.00714.36
7.0.140.0070.01014.69
7.0.130.0030.01714.78
7.0.120.0070.01014.68
7.0.110.0130.00314.55
7.0.100.0100.01014.45
7.0.90.0070.01014.60
7.0.80.0030.01014.48
7.0.70.1200.01314.52
7.0.60.0070.01314.19
7.0.50.2330.01014.57
7.0.40.1870.01314.63
7.0.30.1930.00714.79
7.0.20.0270.01014.48
7.0.10.0470.01714.64
7.0.00.1770.00314.63

preferences:
30.19 ms | 401 KiB | 5 Q