3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $a->test(); }catch(Throwable $ee){ echo "Catched exception: " . $ee->getMessage() . "\n"; } //Third case: let's trigger a slightly different error try { array_diff([$stdObject], [$stdObject]); }catch(Throwable $ee){ //Handler is called, exception is thrown but... IT IS NOT CATCHED! echo "Catched exception: " . $ee->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.70.0120.00916.23
8.3.60.0090.00918.68
8.3.50.0110.00416.38
8.3.40.0060.00918.66
8.3.30.0040.01118.67
8.3.20.0090.00020.21
8.3.10.0000.00821.90
8.3.00.0060.00320.55
8.2.180.0060.00918.48
8.2.170.0040.01422.96
8.2.160.0070.00722.16
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00320.48
8.2.120.0050.00226.35
8.2.110.0070.00321.05
8.2.100.0090.00317.91
8.2.90.0040.00418.28
8.2.80.0030.00518.05
8.2.70.0040.00417.50
8.2.60.0040.00418.05
8.2.50.0040.00418.10
8.2.40.0000.00822.14
8.2.30.0060.00320.95
8.2.20.0040.00418.19
8.2.10.0040.00418.13
8.2.00.0000.00818.05
8.1.280.0070.00725.92
8.1.270.0040.00422.02
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00422.14
8.1.230.0040.00822.69
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0050.00517.25
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0070.00318.50
8.1.160.0040.00419.00
8.1.150.0050.00220.59
8.1.140.0040.00419.58
8.1.130.0030.00318.89
8.1.120.0000.00717.37
8.1.110.0040.00417.42
8.1.100.0040.00317.40
8.1.90.0080.00017.39
8.1.80.0030.00317.42
8.1.70.0040.00417.39
8.1.60.0000.00717.47
8.1.50.0000.00817.54
8.1.40.0070.00017.47
8.1.30.0030.00917.63
8.1.20.0040.00417.64
8.1.10.0080.00017.60
8.1.00.0040.00417.55
8.0.300.0080.00020.07
8.0.290.0040.00416.75
8.0.280.0030.00518.36
8.0.270.0000.00717.31
8.0.260.0000.00816.89
8.0.250.0030.00316.97
8.0.240.0040.00316.79
8.0.230.0040.00417.02
8.0.220.0040.00416.99
8.0.210.0000.00816.98
8.0.200.0030.00316.89
8.0.190.0000.00816.94
8.0.180.0000.00716.86
8.0.170.0040.00416.95
8.0.160.0060.00316.98
8.0.150.0050.00316.96
8.0.140.0070.00016.86
8.0.130.0080.00013.44
8.0.120.0030.00516.82
8.0.110.0000.00716.93
8.0.100.0050.00216.91
8.0.90.0050.00216.95
8.0.80.0030.01116.87
8.0.70.0000.00716.87
8.0.60.0070.00016.88
8.0.50.0070.00017.02
8.0.30.0150.00716.97
8.0.20.0110.00917.40
8.0.10.0080.00017.03
8.0.00.0090.00916.85
7.4.330.0000.00515.55
7.4.320.0060.00016.41
7.4.300.0070.00016.58
7.4.290.0000.00716.52
7.4.280.0000.00816.50
7.4.270.0030.00616.63
7.4.260.0070.00016.42
7.4.250.0050.00316.33
7.4.240.0000.00716.62
7.4.230.0000.00716.70
7.4.220.0140.00316.48
7.4.210.0080.00916.64
7.4.200.0070.00016.49
7.4.160.0080.01116.52
7.4.150.0060.01217.40
7.4.140.0120.00817.86
7.4.130.0070.01116.63
7.4.120.0110.00716.63
7.4.110.0100.00716.51
7.4.100.0030.01416.53
7.4.90.0000.01816.59
7.4.80.0110.01119.39
7.4.70.0100.00716.37
7.4.60.0080.00816.48
7.4.50.0070.00716.64
7.4.40.0060.01116.64
7.4.30.0080.00816.39
7.4.00.0060.00914.79
7.3.330.0050.00013.35
7.3.320.0000.00613.05
7.3.310.0000.00716.30
7.3.300.0000.00716.33
7.3.290.0030.00316.23
7.3.280.0080.00816.33
7.3.270.0120.00617.40
7.3.260.0120.00916.37
7.3.250.0070.01316.42
7.3.240.0100.01316.50
7.3.230.0070.01016.38
7.3.210.0140.00716.42
7.3.200.0030.01216.44
7.3.190.0060.00916.30
7.3.180.0040.01816.56
7.3.170.0110.00616.42
7.3.160.0130.00216.27
7.2.330.0030.02016.46
7.2.320.0070.01016.53
7.2.310.0160.00016.53
7.2.300.0070.01016.63
7.2.290.0030.01316.61
7.2.60.0790.01114.82
7.2.00.0080.00819.48
7.1.200.0080.00415.50
7.1.100.0000.01418.26
7.1.70.0040.00416.84
7.1.60.0300.01333.05
7.1.50.0400.01032.96
7.1.40.0400.00732.46
7.1.30.0330.01332.52
7.1.20.0370.01032.64
7.1.10.0200.01014.66
7.1.00.0330.00314.68
7.0.200.0230.00714.95
7.0.190.0300.00714.95
7.0.180.0200.01314.39
7.0.170.0200.01014.61
7.0.160.0200.01014.57
7.0.150.0230.00714.38
7.0.140.0270.00714.48
7.0.130.0300.00714.72
7.0.120.0270.01014.59
7.0.110.0300.00314.55
7.0.100.0330.00014.55
7.0.90.0300.01014.40
7.0.80.0170.01314.74
7.0.70.0700.01314.38
7.0.60.0270.01314.20
7.0.50.0270.01314.46
7.0.40.0230.01014.67
7.0.30.0270.01314.60
7.0.20.0230.01314.60
7.0.10.0270.01014.58
7.0.00.0270.01314.51

preferences:
40.96 ms | 400 KiB | 5 Q