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 { $stdObject = new StdClass(); 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.60.0110.00718.27
8.3.50.0070.00716.45
8.3.40.0090.00618.71
8.3.30.0000.01518.84
8.3.20.0050.00520.38
8.3.10.0040.00421.77
8.3.00.0040.00720.89
8.2.180.0110.00418.25
8.2.170.0110.00322.96
8.2.160.0100.01022.13
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00022.26
8.2.120.0070.00026.35
8.2.110.0090.00020.35
8.2.100.0060.00617.97
8.2.90.0040.00418.06
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0000.00822.27
8.2.30.0040.00421.04
8.2.20.0040.00418.12
8.2.10.0060.00318.08
8.2.00.0080.00017.97
8.1.280.0070.00725.92
8.1.270.0050.00322.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.59
8.1.230.0070.00320.97
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00818.47
8.1.160.0000.00718.96
8.1.150.0000.00720.59
8.1.140.0030.00519.56
8.1.130.0050.00218.82
8.1.120.0030.00417.36
8.1.110.0040.00417.34
8.1.100.0000.00717.44
8.1.90.0070.00017.36
8.1.80.0030.00317.45
8.1.70.0030.00317.33
8.1.60.0030.00617.60
8.1.50.0060.00317.56
8.1.40.0080.00017.49
8.1.30.0120.00317.68
8.1.20.0000.00817.64
8.1.10.0050.00217.47
8.1.00.0000.00817.39
8.0.300.0050.00320.27
8.0.290.0060.00316.63
8.0.280.0040.00418.35
8.0.270.0050.00217.17
8.0.260.0000.00816.80
8.0.250.0030.00317.08
8.0.240.0000.00816.93
8.0.230.0040.00417.03
8.0.220.0050.00316.98
8.0.210.0070.00016.96
8.0.200.0030.00317.00
8.0.190.0030.00617.02
8.0.180.0000.00716.92
8.0.170.0000.00716.92
8.0.160.0030.00616.94
8.0.150.0040.00416.97
8.0.140.0030.00516.91
8.0.130.0000.00713.39
8.0.120.0050.00216.86
8.0.110.0040.00416.95
8.0.100.0040.00416.90
8.0.90.0070.00016.97
8.0.80.0110.00416.92
8.0.70.0040.00417.02
8.0.60.0000.00716.95
8.0.50.0050.00216.77
8.0.30.0090.00917.08
8.0.20.0100.00817.40
8.0.10.0040.00417.12
8.0.00.0080.00816.63
7.4.330.0000.00615.55
7.4.320.0060.00016.42
7.4.300.0040.00416.61
7.4.290.0030.00316.47
7.4.280.0060.00316.48
7.4.270.0040.00416.43
7.4.260.0030.00316.43
7.4.250.0070.00016.46
7.4.240.0070.00016.59
7.4.230.0030.00316.50
7.4.220.0100.00716.62
7.4.210.0080.00716.61
7.4.200.0050.00316.65
7.4.160.0100.00816.54
7.4.150.0150.00317.40
7.4.140.0100.00817.86
7.4.130.0070.01016.45
7.4.120.0090.01216.56
7.4.110.0070.01016.61
7.4.100.0060.01216.58
7.4.90.0030.01416.62
7.4.80.0030.01719.39
7.4.70.0130.00316.66
7.4.60.0070.01016.54
7.4.50.0070.00716.39
7.4.40.0120.00616.21
7.4.30.0120.00316.54
7.4.00.0060.00914.84
7.3.330.0050.00013.22
7.3.320.0000.00513.23
7.3.310.0030.00316.32
7.3.300.0000.00716.31
7.3.290.0000.00716.35
7.3.280.0090.00616.33
7.3.270.0070.01117.40
7.3.260.0110.01216.37
7.3.250.0130.00516.34
7.3.240.0120.00416.44
7.3.230.0130.00716.42
7.3.210.0060.01016.52
7.3.200.0030.01416.43
7.3.190.0070.01016.43
7.3.180.0060.01016.44
7.3.170.0140.00316.39
7.3.160.0030.01216.59
7.3.00.0110.00416.53
7.2.330.0030.01416.32
7.2.320.0100.00716.52
7.2.310.0080.00816.43
7.2.300.0030.01316.74
7.2.290.0030.01316.81
7.2.130.0130.00016.84
7.2.120.0060.00916.82
7.2.110.0030.01016.65
7.2.100.0000.01816.86
7.2.90.0090.00916.86
7.2.80.0070.01017.10
7.2.70.0130.00316.82
7.2.60.0500.00515.96
7.2.50.0030.00616.93
7.2.40.0070.00716.88
7.2.30.0110.00716.73
7.2.20.0040.00816.88
7.2.10.0070.01016.68
7.2.00.0040.01118.09
7.1.250.0090.00915.64
7.1.240.0110.00715.68
7.1.230.0040.01115.76
7.1.220.0040.00715.51
7.1.210.0100.00315.65
7.1.200.0060.00915.58
7.1.190.0060.00615.75
7.1.180.0030.00915.28
7.1.170.0060.00615.64
7.1.160.0060.00615.75
7.1.150.0000.01515.69
7.1.140.0070.01015.68
7.1.130.0030.01015.37
7.1.120.0040.00815.56
7.1.110.0030.01215.58
7.1.100.0340.00615.77
7.1.90.0060.01015.35
7.1.80.0140.00315.45
7.1.70.0020.01116.37
7.1.60.0230.01324.43
7.1.50.0250.00824.16
7.1.40.0230.01123.86
7.1.30.0310.00624.09
7.1.20.0280.00924.04
7.1.10.0200.00815.16
7.1.00.0200.00515.23
7.0.330.0080.00015.04
7.0.320.0040.01115.31
7.0.310.0090.00015.31
7.0.300.0000.00815.00
7.0.290.0090.00615.02
7.0.280.0040.00915.05
7.0.270.0030.00915.29
7.0.260.0090.00315.20
7.0.250.0030.00915.33
7.0.240.0100.00315.18
7.0.230.0060.00615.38
7.0.220.0060.00615.27
7.0.210.0150.00015.38
7.0.200.0180.00915.07
7.0.190.0200.00715.12
7.0.180.0120.01214.83
7.0.170.0230.00814.83
7.0.160.0250.01014.62
7.0.150.0200.00714.96
7.0.140.0150.00914.93
7.0.130.0180.00815.06
7.0.120.0180.00814.98
7.0.110.0200.00614.96
7.0.100.0600.00814.87
7.0.90.0200.00714.85
7.0.80.0220.00715.00
7.0.70.0200.00514.83
7.0.60.0210.00414.89
7.0.50.0280.01114.92
7.0.40.0170.00714.04
7.0.30.0210.00714.15
7.0.20.0240.00913.91
7.0.10.0200.00714.00
7.0.00.0230.00814.15
5.6.380.0080.00814.34

preferences:
42.78 ms | 401 KiB | 5 Q