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]); }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.0070.01418.68
8.3.50.0150.00016.39
8.3.40.0110.00318.54
8.3.30.0110.00418.67
8.3.20.0000.00920.04
8.3.10.0060.00321.67
8.3.00.0060.00320.96
8.2.180.0120.00918.39
8.2.170.0060.01222.96
8.2.160.0090.00622.20
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00422.13
8.2.120.0070.00026.35
8.2.110.0060.00321.05
8.2.100.0040.00817.91
8.2.90.0000.00818.28
8.2.80.0030.00617.97
8.2.70.0000.00917.50
8.2.60.0090.00018.04
8.2.50.0030.00618.10
8.2.40.0000.00822.04
8.2.30.0080.00021.07
8.2.20.0050.00318.07
8.2.10.0000.00818.05
8.2.00.0000.00918.10
8.1.280.0040.01125.92
8.1.270.0050.00323.92
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00323.97
8.1.230.0070.00422.80
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.25
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0030.00618.66
8.1.160.0040.00419.05
8.1.150.0000.00820.68
8.1.140.0050.00219.60
8.1.130.0000.00717.37
8.1.120.0080.00017.47
8.1.110.0050.00317.50
8.1.100.0070.00017.43
8.1.90.0070.00017.38
8.1.80.0050.00317.44
8.1.70.0000.00717.47
8.1.60.0040.00417.46
8.1.50.0040.00417.53
8.1.40.0000.00817.51
8.1.30.0070.00417.61
8.1.20.0000.00817.69
8.1.10.0040.00417.44
8.1.00.0030.00617.40
8.0.300.0070.00019.91
8.0.290.0060.00316.63
8.0.280.0000.00718.45
8.0.270.0030.00517.23
8.0.260.0030.00316.92
8.0.250.0030.00317.02
8.0.240.0040.00416.87
8.0.230.0040.00417.01
8.0.220.0070.00017.01
8.0.210.0070.00016.85
8.0.200.0060.00016.96
8.0.190.0040.00417.05
8.0.180.0070.00016.91
8.0.170.0000.00716.90
8.0.160.0060.00316.93
8.0.150.0070.00016.83
8.0.140.0030.00316.94
8.0.130.0070.00013.37
8.0.120.0070.00016.89
8.0.110.0090.00016.97
8.0.100.0070.00016.89
8.0.90.0040.00417.02
8.0.80.0120.00416.90
8.0.70.0050.00317.02
8.0.60.0000.00717.02
8.0.50.0070.00016.97
8.0.30.0100.00917.03
8.0.20.0130.00817.40
8.0.10.0000.00717.13
8.0.00.0030.01416.83
7.4.330.0000.00515.55
7.4.320.0040.00416.62
7.4.300.0030.00316.59
7.4.290.0070.00016.49
7.4.280.0040.00416.58
7.4.270.0000.00716.61
7.4.260.0000.00716.60
7.4.250.0070.00016.43
7.4.240.0050.00316.66
7.4.230.0030.00316.63
7.4.220.0170.00016.51
7.4.210.0070.00816.48
7.4.200.0000.00816.50
7.4.160.0060.01116.48
7.4.150.0090.01217.40
7.4.140.0140.00617.86
7.4.130.0040.01416.36
7.4.120.0100.01216.47
7.4.110.0090.00616.54
7.4.100.0100.01116.77
7.4.90.0120.01216.56
7.4.80.0040.01319.39
7.4.70.0130.00316.70
7.4.60.0040.01216.48
7.4.50.0000.01516.38
7.4.40.0060.00916.43
7.4.30.0030.01316.65
7.4.00.0030.01414.90
7.3.330.0020.00213.17
7.3.320.0030.00313.26
7.3.310.0030.00316.26
7.3.300.0000.00616.34
7.3.290.0030.00316.36
7.3.280.0130.01016.31
7.3.270.0140.00417.40
7.3.260.0160.00816.42
7.3.250.0130.01116.47
7.3.240.0100.00816.36
7.3.230.0120.00616.47
7.3.210.0130.00316.43
7.3.200.0090.00616.28
7.3.190.0070.00716.54
7.3.180.0030.01316.42
7.3.170.0000.01516.28
7.3.160.0080.00716.52
7.2.330.0150.00316.45
7.2.320.0120.00616.80
7.2.310.0100.00716.76
7.2.300.0060.01016.39
7.2.290.0070.01016.79
7.2.60.0220.00616.74
7.2.00.0040.00819.46
7.1.200.0030.01015.75
7.1.100.0510.00715.54
7.1.70.0000.01017.16
7.1.60.0500.01033.29
7.1.50.0530.01332.88
7.1.40.0500.01032.37
7.1.30.0430.01332.62
7.1.20.0400.02032.60
7.1.10.0300.01014.63
7.1.00.0370.00714.77
7.0.200.0370.01014.75
7.0.190.0470.00714.62
7.0.180.0370.00714.46
7.0.170.0300.01014.32
7.0.160.0330.00714.37
7.0.150.0370.00314.63
7.0.140.0370.00714.35
7.0.130.0300.01014.57
7.0.120.0330.01314.72
7.0.110.0430.00714.42
7.0.100.0430.00714.68
7.0.90.0330.01014.52
7.0.80.0600.01314.64
7.0.70.0370.00714.39
7.0.60.0330.01314.38
7.0.50.0430.00714.42
7.0.40.0370.00714.52
7.0.30.0330.01014.75
7.0.20.0330.01014.49
7.0.10.0370.00714.70
7.0.00.0330.01014.48

preferences:
48.2 ms | 401 KiB | 5 Q