3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { try { throw new \RuntimeException('Test error'); } catch (\RuntimeException $e) { $error = $e; $errorClass = get_class($e); throw new $errorClass($e->getMessage()); } finally { var_dump($error->getMessage()); } } echo test();

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.5.10.0120.00718.96
8.5.00.0090.01420.30
8.4.150.0020.00014.05
8.4.140.0100.01117.71
8.4.130.0120.00918.53
8.4.120.0070.01218.86
8.4.110.0140.00620.56
8.4.100.0100.01117.90
8.4.90.0060.01120.53
8.4.80.0110.00820.48
8.4.70.0110.00520.64
8.4.60.0130.00720.36
8.4.50.0120.00718.46
8.4.40.0090.00017.79
8.4.30.0170.00318.49
8.4.20.0130.00719.94
8.4.10.0100.00717.87
8.3.280.0120.01018.47
8.3.270.0110.00916.75
8.3.260.0120.00716.57
8.3.250.0110.00716.71
8.3.240.0060.00216.96
8.3.230.0140.00516.79
8.3.220.0130.00619.11
8.3.210.0100.00816.93
8.3.200.0040.00616.57
8.3.190.0050.00319.02
8.3.180.0050.00518.73
8.3.170.0040.01418.90
8.3.160.0110.00716.50
8.3.150.0150.00416.69
8.3.140.0040.00416.60
8.3.130.0130.00616.61
8.3.120.0030.00518.94
8.3.110.0090.00620.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0030.00716.50
8.3.70.0070.01116.63
8.3.60.0100.01016.88
8.3.50.0110.00523.59
8.3.40.0130.00318.57
8.3.30.0080.01118.79
8.3.20.0040.00420.63
8.3.10.0030.00620.30
8.3.00.0040.00420.70
8.2.290.0120.00716.83
8.2.280.0120.00718.36
8.2.270.0070.01316.63
8.2.260.0040.01117.05
8.2.250.0040.01118.61
8.2.240.0060.00318.61
8.2.230.0030.00622.58
8.2.220.0080.00037.54
8.2.210.0000.00826.77
8.2.200.0030.00618.54
8.2.190.0090.00616.58
8.2.180.0140.00725.92
8.2.170.0180.00022.96
8.2.160.0130.00719.41
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0030.00526.16
8.2.110.0070.00319.31
8.2.100.0120.00017.78
8.2.90.0030.00617.75
8.2.80.0000.01018.78
8.2.70.0030.00717.36
8.2.60.0070.00418.04
8.2.50.0060.00318.07
8.2.40.0040.00418.16
8.2.30.0040.00419.38
8.2.20.0070.00018.07
8.2.10.0030.00519.33
8.2.00.0030.00519.17
8.1.330.0110.00916.13
8.1.320.0060.00721.90
8.1.310.0100.01016.57
8.1.300.0040.01117.98
8.1.290.0040.00430.84
8.1.280.0110.00425.92
8.1.270.0000.00922.00
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.01120.79
8.1.230.0110.00419.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0120.00018.67
8.1.160.0000.00718.99
8.1.150.0020.00518.94
8.1.140.0040.00418.89
8.1.130.0000.00720.21
8.1.120.0050.00217.48
8.1.110.0030.00617.47
8.1.100.0030.00517.43
8.1.90.0000.00717.47
8.1.80.0040.00417.47
8.1.70.0030.00617.39
8.1.60.0030.00517.51
8.1.50.0030.00517.53
8.1.40.0000.00817.51
8.1.30.0040.00417.68
8.1.20.0040.00417.55
8.1.10.0000.00817.45
8.1.00.0080.00017.51
8.0.300.0040.00420.09
8.0.290.0000.01016.75
8.0.280.0000.00718.44
8.0.270.0000.00717.97
8.0.260.0000.00619.95
8.0.250.0060.00016.95
8.0.240.0000.00716.98
8.0.230.0040.00416.86
8.0.220.0060.00316.91
8.0.210.0070.00016.86
8.0.200.0000.00716.96
8.0.190.0030.00316.86
8.0.180.0040.00416.83
8.0.170.0040.00416.96
8.0.160.0040.00416.98
8.0.150.0070.00016.90
8.0.140.0050.00516.80
8.0.130.0030.00313.36
8.0.120.0050.00316.94
8.0.110.0040.00416.93
8.0.100.0050.00216.96
8.0.90.0080.00016.83
8.0.80.0060.00916.92
8.0.70.0000.00716.90
8.0.60.0040.00416.85
8.0.50.0000.00716.95
8.0.30.0030.01317.22
8.0.20.0090.01017.06
8.0.10.0000.00816.95
8.0.00.0090.00916.70
7.4.330.0020.00215.55
7.4.320.0040.00416.48
7.4.300.0060.00016.41
7.4.290.0040.00416.46
7.4.280.0000.00816.50
7.4.270.0070.00016.53
7.4.260.0080.00013.23
7.4.250.0000.00716.46
7.4.240.0020.00616.54
7.4.230.0000.00716.36
7.4.220.0050.00216.45
7.4.210.0100.00516.51
7.4.200.0000.00816.57
7.4.130.0110.00616.68
7.4.120.0110.00616.59
7.4.110.0000.01716.45
7.4.100.0070.01116.50
7.4.90.0080.00816.41
7.4.80.0120.01219.39
7.4.70.0070.01016.65
7.4.60.0150.00616.55
7.4.50.0050.00916.30
7.4.40.0070.01616.46
7.4.30.0110.00616.52
7.4.20.0070.01116.47
7.4.10.0080.01016.58
7.4.00.0100.00716.61
7.3.330.0030.00316.45
7.3.320.0060.00013.35
7.3.310.0100.00016.37
7.3.300.0030.00316.40
7.3.290.0060.01016.42
7.3.280.0030.01016.33
7.3.260.0100.01316.66
7.3.240.0090.00916.50
7.3.230.0180.00316.36
7.3.210.0070.01016.30
7.3.200.0140.00716.45
7.3.190.0080.00816.27
7.3.180.0080.00816.43
7.3.170.0070.00916.36
7.3.160.0100.01016.42
7.3.150.0100.00816.35
7.3.140.0070.01016.40
7.3.130.0080.01016.44
7.3.120.0080.01116.37
7.3.110.0120.00616.47
7.3.100.0070.01116.38
7.3.90.0100.00616.45
7.3.80.0070.00916.44
7.3.70.0100.00916.38
7.3.60.0080.01116.38
7.3.50.0130.01016.35
7.3.40.0100.01116.32
7.3.30.0080.01216.43
7.3.20.0110.01116.39
7.3.10.0090.00816.41
7.3.00.0120.00716.50
7.2.330.0070.01316.41
7.2.320.0130.00316.59
7.2.310.0030.01316.59
7.2.300.0190.00316.55
7.2.290.0070.01116.64
7.2.280.0060.01116.59
7.2.270.0070.01216.57
7.2.260.0090.00916.56
7.2.250.0090.00816.54
7.2.240.0080.01116.51
7.2.230.0130.00516.57
7.2.220.0060.01116.58
7.2.210.0100.00816.60
7.2.200.0110.00916.63
7.2.190.0070.01416.58
7.2.180.0120.00916.63
7.2.170.0090.01116.58
7.2.160.0080.01216.52
7.2.150.0180.01116.61
7.2.140.0080.01016.55
7.2.130.0070.01216.66
7.2.120.0140.00516.56
7.2.110.0070.01216.60
7.2.100.0090.01016.60
7.2.90.0110.00816.56
7.2.80.0100.00916.56
7.2.70.0090.00916.57
7.2.60.0110.00816.68
7.2.50.0090.01316.53
7.2.40.0090.01416.61
7.2.30.0180.00816.66
7.2.20.0120.00716.61
7.2.10.0070.01416.58
7.2.00.0080.00916.54

preferences:
35.62 ms | 403 KiB | 5 Q