3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyException extends Exception { } class MyOtherException extends Exception { } class Test { public function testing() { try { throw new MyException(); } catch (MyException|MyOtherException $e) { var_dump(get_class($e)); } } } $foo = new Test; $foo->testing();

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.00918.28
8.3.50.0120.00618.15
8.3.40.0120.00618.88
8.3.30.0110.00418.58
8.3.20.0050.00320.22
8.3.10.0050.00323.67
8.3.00.0060.00319.79
8.2.180.0040.01118.38
8.2.170.0040.01122.96
8.2.160.0080.00520.43
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00421.14
8.2.110.0030.00720.52
8.2.100.0070.00417.78
8.2.90.0040.00419.03
8.2.80.0050.00517.97
8.2.70.0090.00017.67
8.2.60.0040.00417.90
8.2.50.0060.00318.10
8.2.40.0000.00820.48
8.2.30.0040.00419.10
8.2.20.0000.00917.93
8.2.10.0000.00917.93
8.2.00.0000.00718.12
8.1.280.0110.00425.92
8.1.270.0070.00022.05
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.83
8.1.230.0050.00519.21
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00517.25
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0040.00418.56
8.1.160.0040.00418.91
8.1.150.0040.00420.14
8.1.140.0070.00017.71
8.1.130.0100.00018.93
8.1.120.0000.00717.52
8.1.110.0000.00717.34
8.1.100.0050.00317.43
8.1.90.0000.00717.37
8.1.80.0040.00417.33
8.1.70.0030.00317.51
8.1.60.0080.00017.63
8.1.50.0030.00617.39
8.1.40.0040.00417.47
8.1.30.0050.00317.64
8.1.20.0000.00817.71
8.1.10.0050.00217.53
8.1.00.0000.00817.37
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.42
8.0.270.0070.00017.24
8.0.260.0030.00316.83
8.0.250.0020.00516.97
8.0.240.0000.00816.98
8.0.230.0000.00716.88
8.0.220.0000.00716.86
8.0.210.0070.00016.87
8.0.200.0040.00416.94
8.0.190.0070.00316.95
8.0.180.0050.00216.97
8.0.170.0030.00516.82
8.0.160.0030.00616.81
8.0.150.0000.00717.02
8.0.140.0040.00416.94
8.0.130.0030.00313.41
8.0.120.0030.00516.89
8.0.110.0040.00416.86
8.0.100.0080.00017.02
8.0.90.0040.00416.81
8.0.80.0070.01016.99
8.0.70.0040.00416.85
8.0.60.0040.00416.98
8.0.50.0020.00517.07
8.0.30.0110.00817.04
8.0.20.0140.00717.40
8.0.10.0040.00417.11
8.0.00.0100.00716.86
7.4.330.0020.00215.55
7.4.320.0030.00316.65
7.4.300.0040.00416.59
7.4.290.0070.00016.63
7.4.280.0000.00716.59
7.4.270.0030.00316.52
7.4.260.0030.00316.52
7.4.250.0030.00316.52
7.4.240.0040.00416.62
7.4.230.0070.00016.34
7.4.220.0040.00416.25
7.4.210.0100.00516.54
7.4.200.0030.00516.36
7.4.160.0100.00616.60
7.4.150.0210.00317.40
7.4.140.0140.00617.86
7.4.130.0170.00016.72
7.4.120.0090.01016.60
7.4.110.0100.00716.51
7.4.100.0080.00816.31
7.4.90.0000.01716.34
7.4.80.0070.01019.39
7.4.70.0120.00616.56
7.4.60.0100.00616.54
7.4.50.0090.00616.22
7.4.40.0050.01416.59
7.4.10.0110.00714.87
7.4.00.0030.01414.98
7.3.330.0000.00513.30
7.3.320.0030.00313.34
7.3.310.0030.00316.49
7.3.300.0030.00316.32
7.3.290.0070.01116.45
7.3.280.0120.00616.42
7.3.270.0130.00417.40
7.3.260.0070.01216.39
7.3.240.0120.00816.45
7.3.230.0000.01616.46
7.3.210.0060.00916.47
7.3.200.0090.01016.34
7.3.190.0120.00616.48
7.3.180.0100.01316.40
7.3.170.0120.00316.49
7.3.160.0090.00616.42
7.3.130.0060.01014.84
7.3.120.0110.01115.14
7.3.110.0030.01514.77
7.3.100.0080.00814.95
7.3.90.0040.00714.98
7.3.80.0080.00315.14
7.3.70.0050.00314.91
7.3.60.0090.00014.77
7.3.50.0060.00314.91
7.3.40.0080.00014.68
7.3.30.0030.01014.86
7.3.20.0030.01216.58
7.3.10.0030.01416.70
7.3.00.0140.00016.48
7.2.330.0150.00616.71
7.2.320.0110.00616.47
7.2.310.0080.01516.62
7.2.300.0090.01216.35
7.2.290.0030.01316.80
7.2.260.0030.01715.23
7.2.250.0060.01015.14
7.2.240.0030.01415.10
7.2.230.0060.00614.71
7.2.220.0100.00315.02
7.2.210.0070.00714.98
7.2.200.0060.00815.11
7.2.190.0090.00615.09
7.2.180.0030.00714.88
7.2.170.0060.00314.95
7.2.160.0080.00015.02
7.2.150.0000.01016.94
7.2.140.0070.00716.92
7.2.130.0070.00716.68
7.2.120.0070.00716.92
7.2.110.0090.00616.64
7.2.100.0000.01017.01
7.2.90.0030.01216.85
7.2.80.0120.00816.70
7.2.70.0110.00416.84
7.2.60.0130.00316.81
7.2.50.0030.00716.93
7.2.40.0000.01016.73
7.2.30.0000.01016.77
7.2.20.0300.00617.40
7.2.10.0210.01517.26
7.2.00.0200.01617.33
7.1.330.0130.00315.83
7.1.320.0030.01315.55
7.1.310.0030.01015.53
7.1.300.0070.00715.49
7.1.290.0000.01015.80
7.1.280.0000.01215.90
7.1.270.0000.01215.76
7.1.260.0070.00715.77
7.1.250.0070.00715.47
7.1.240.0060.00615.72
7.1.230.0060.00915.59
7.1.220.0090.00015.75
7.1.210.0090.00615.78
7.1.200.0060.00615.70
7.1.190.0000.01115.75
7.1.180.0040.00415.74
7.1.170.0030.01515.85
7.1.160.0060.00615.73
7.1.150.0090.00915.73
7.1.140.0200.01216.24
7.1.130.0280.00816.24
7.1.120.0230.01116.36
7.1.110.0390.00915.94
7.1.100.0280.00615.86
7.1.90.0300.01015.87
7.1.80.0250.00816.09
7.1.70.0240.01315.42
7.1.60.0340.01524.61
7.1.50.0360.01024.26
7.1.40.0350.01024.13
7.1.30.0420.01124.26
7.1.20.0310.01324.21
7.1.10.0310.00515.13
7.1.00.0280.01115.35
7.0.330.0040.00415.44
7.0.320.0000.01615.21
7.0.310.0000.01415.21
7.0.300.0060.00915.39
7.0.290.0040.01115.11
7.0.280.0070.00815.24
7.0.270.0120.00415.05
7.0.260.0090.00315.14
7.0.250.0030.00715.19
7.0.240.0030.00715.10
7.0.230.0000.01415.17
7.0.220.0040.00815.36
7.0.210.0000.01115.19
7.0.200.0090.00315.45
7.0.190.0090.00315.23
7.0.180.0040.01115.23
7.0.170.0030.01015.31
7.0.160.0070.00715.59
7.0.150.0030.00715.18
7.0.140.0040.01215.13
7.0.130.0060.00915.19
7.0.120.0080.00715.21
7.0.110.0060.00615.29
7.0.100.0030.01015.35
7.0.90.0040.00715.05
7.0.80.0030.01415.24
7.0.70.0000.00815.38
7.0.60.0030.00715.30
7.0.50.0100.00315.52
7.0.40.0060.00913.30
7.0.30.0070.00713.32
7.0.20.0070.00313.28
7.0.10.0060.01013.36
7.0.00.0000.01513.37
5.6.400.0040.00814.45
5.6.390.0030.01014.06
5.6.380.0040.00414.23
5.6.370.0000.01114.30
5.6.360.0040.01114.17
5.6.350.0000.01014.04
5.6.340.0040.01414.30
5.6.330.0070.01114.10
5.6.320.0130.00314.01
5.6.310.0030.00614.26
5.6.300.0060.00614.22
5.6.290.0130.00314.39
5.6.280.0070.00714.25
5.6.270.0000.01314.23
5.6.260.0080.00314.10
5.6.250.0040.01114.30
5.6.240.0030.01014.25
5.6.230.0090.00014.25
5.6.220.0000.01214.31
5.6.210.0120.00313.87
5.6.200.0080.00414.15
5.6.190.0040.00714.06
5.6.180.0000.01414.26
5.6.170.0040.01414.00
5.6.160.0070.01014.09
5.6.150.0030.00714.27
5.6.140.0070.00414.07
5.6.130.0060.00314.11
5.6.120.0030.01314.21
5.6.110.0100.00613.94
5.6.100.0040.00414.09
5.6.90.0040.00414.16
5.6.80.0000.01413.85
5.6.70.0040.00714.11
5.6.60.0060.00314.07
5.6.50.0070.00714.21
5.6.40.0040.01114.00
5.6.30.0030.00614.02
5.6.20.0040.00413.89
5.6.10.0040.00814.07
5.6.00.0000.01614.12

preferences:
72.74 ms | 401 KiB | 5 Q