3v4l.org

run code in 300+ PHP versions simultaneously
<?php function aaa($x) { try { if ($x === 0) { throw new Exception('zero!'); } } catch (Exception $e) { echo "Caught inside : " . $e->getMessage() . "\n"; } return $x; } try { aaa(5); aaa(0); } catch (Exception $e) { echo "Caught : " . $e->getMessage() . "\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.0120.00916.50
8.3.50.0070.00716.29
8.3.40.0040.01118.59
8.3.30.0060.00918.67
8.3.20.0070.00021.90
8.3.10.0040.00423.61
8.3.00.0040.00419.85
8.2.180.0070.00718.38
8.2.170.0180.00022.96
8.2.160.0070.00719.54
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00022.20
8.2.120.0070.00026.35
8.2.110.0060.00321.08
8.2.100.0040.00817.91
8.2.90.0060.00319.09
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0070.00318.05
8.2.50.0000.00818.10
8.2.40.0040.00422.38
8.2.30.0040.00419.38
8.2.20.0050.00317.92
8.2.10.0000.00718.13
8.2.00.0020.00517.94
8.1.270.0040.00420.69
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00619.60
8.1.230.0110.00017.83
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0050.00318.53
8.1.160.0000.00718.81
8.1.150.0000.00922.03
8.1.140.0000.00719.49
8.1.130.0070.00020.66
8.1.120.0000.00717.48
8.1.110.0060.00317.34
8.1.100.0000.00717.48
8.1.90.0050.00317.44
8.1.80.0000.00717.50
8.1.70.0000.00717.36
8.1.60.0000.00817.45
8.1.50.0030.00517.41
8.1.40.0000.01017.52
8.1.30.0090.00017.62
8.1.20.0030.00517.67
8.1.10.0030.00517.59
8.1.00.0000.00717.59
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0000.00818.47
8.0.270.0040.00417.18
8.0.260.0000.00816.79
8.0.250.0020.00516.92
8.0.240.0000.00717.05
8.0.230.0040.00416.92
8.0.220.0000.00816.97
8.0.210.0030.00316.92
8.0.200.0000.00816.89
8.0.190.0090.00317.07
8.0.180.0030.00516.95
8.0.170.0030.00617.03
8.0.160.0050.00316.96
8.0.150.0000.00816.96
8.0.140.0000.00716.91
8.0.130.0030.00313.35
8.0.120.0070.00016.90
8.0.110.0050.00216.84
8.0.100.0040.00416.86
8.0.90.0030.00316.84
8.0.80.0040.01116.84
8.0.70.0070.00016.78
8.0.60.0050.00316.86
8.0.50.0040.00416.74
8.0.30.0110.00617.21
8.0.20.0130.00617.40
8.0.10.0070.00017.03
8.0.00.0030.01416.82
7.4.330.0000.00515.55
7.4.320.0000.00716.47
7.4.300.0040.00416.54
7.4.290.0000.00716.63
7.4.280.0000.00816.53
7.4.270.0000.00716.48
7.4.260.0000.00716.61
7.4.250.0000.00716.43
7.4.240.0000.00716.60
7.4.230.0070.00016.64
7.4.220.0140.01116.57
7.4.210.0030.01716.68
7.4.200.0030.00316.57
7.4.160.0080.01216.56
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0080.00816.52
7.4.120.0120.01016.51
7.4.110.0040.01516.35
7.4.100.0090.00616.68
7.4.90.0030.01316.44
7.4.80.0130.00319.39
7.4.70.0040.01216.53
7.4.60.0090.00916.40
7.4.50.0030.01316.65
7.4.40.0060.00916.33
7.4.30.0130.00416.53
7.4.00.0040.01214.83
7.3.330.0000.00813.23
7.3.320.0050.00013.23
7.3.310.0030.00316.27
7.3.300.0000.00616.37
7.3.290.0120.00316.35
7.3.280.0070.00916.33
7.3.270.0140.00417.40
7.3.260.0120.00716.36
7.3.250.0090.00816.37
7.3.240.0080.00916.45
7.3.230.0130.00316.50
7.3.210.0110.00616.66
7.3.200.0120.00916.37
7.3.190.0090.00816.35
7.3.180.0100.01316.32
7.3.170.0110.00516.52
7.3.160.0100.00616.37
7.3.120.0050.01314.93
7.3.110.0120.00514.95
7.3.100.0100.00414.72
7.3.90.0070.00914.87
7.3.80.0070.00614.89
7.3.70.0050.00814.74
7.3.60.0050.00814.89
7.3.50.0090.00414.76
7.3.40.0110.00214.67
7.3.30.0040.00714.81
7.3.20.0050.00816.61
7.3.10.0090.00816.65
7.3.00.0090.00416.62
7.2.330.0120.00616.36
7.2.320.0100.00716.65
7.2.310.0120.00616.41
7.2.300.0040.01516.70
7.2.290.0080.00816.54
7.2.250.0080.01114.91
7.2.240.0080.01215.25
7.2.230.0080.01015.15
7.2.220.0060.00914.95
7.2.210.0080.00615.00
7.2.200.0040.01014.96
7.2.190.0030.01114.88
7.2.180.0050.00814.91
7.2.170.0060.00815.07
7.2.130.0110.00816.88
7.2.120.0060.00616.94
7.2.110.0080.00316.82
7.2.100.0110.00416.97
7.2.90.0060.00916.50
7.2.80.0080.00316.83
7.2.70.0070.01016.77
7.2.60.0070.00616.82
7.2.50.0110.00316.72
7.2.40.0140.00016.85
7.2.30.0100.00616.98
7.2.20.0040.00416.56
7.2.10.0080.00516.82
7.2.00.0100.00016.96
7.1.330.0060.00615.73
7.1.320.0090.00415.75
7.1.310.0070.00615.77
7.1.300.0050.00715.80
7.1.290.0060.00715.82
7.1.280.0040.00915.83
7.1.270.0070.00515.73
7.1.260.0070.00715.65
7.1.250.0070.01015.40
7.1.200.0000.00815.82
7.1.70.0000.01517.09
7.1.60.0530.00334.82
7.1.50.0700.02033.00
7.1.40.0600.01334.39
7.1.30.0570.01734.38
7.1.20.0130.01734.42
7.1.10.0070.00716.50
7.1.00.0400.01014.70
7.0.200.0630.00314.88
7.0.190.0400.01316.65
7.0.180.0070.01016.38
7.0.170.0070.00716.14
7.0.160.0000.01316.36
7.0.150.0000.01316.28
7.0.140.0070.00716.33
7.0.130.0470.00314.57
7.0.120.0400.01314.69
7.0.110.0000.01016.32
7.0.100.0000.01316.43
7.0.90.0030.00716.36
7.0.80.0030.01016.40
7.0.70.0070.00716.16
7.0.60.0030.01015.87
7.0.50.0430.00714.53
7.0.40.0070.00316.49
7.0.30.0530.00714.52
7.0.20.0000.01016.28
7.0.10.0370.01014.59
7.0.00.0370.00714.62

preferences:
56.31 ms | 400 KiB | 5 Q