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 { return $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.3.60.0110.01116.50
8.3.50.0120.00916.59
8.3.40.0030.01218.76
8.3.30.0060.01218.71
8.3.20.0040.00420.88
8.3.10.0000.00820.34
8.3.00.0080.00020.71
8.2.180.0100.01016.88
8.2.170.0120.00322.96
8.2.160.0100.00719.30
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0040.00420.99
8.2.110.0050.00520.45
8.2.100.0060.00618.16
8.2.90.0040.00417.88
8.2.80.0000.00918.75
8.2.70.0000.00817.50
8.2.60.0080.00317.59
8.2.50.0050.00318.05
8.2.40.0000.00918.28
8.2.30.0040.00419.33
8.2.20.0040.00417.94
8.2.10.0080.00019.17
8.2.00.0030.00519.24
8.1.280.0090.00625.92
8.1.270.0080.00022.14
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.00
8.1.230.0110.00020.92
8.1.220.0080.00018.55
8.1.210.0030.00618.77
8.1.200.0000.00817.35
8.1.190.0050.00317.35
8.1.180.0050.00518.10
8.1.170.0000.00817.62
8.1.160.0000.00718.91
8.1.150.0030.00618.89
8.1.140.0070.00018.78
8.1.130.0030.00320.13
8.1.120.0000.00717.51
8.1.110.0070.00017.36
8.1.100.0000.00817.52
8.1.90.0040.00417.29
8.1.80.0040.00417.45
8.1.70.0080.00017.43
8.1.60.0000.00817.64
8.1.50.0040.00417.38
8.1.40.0040.00417.42
8.1.30.0040.00417.67
8.1.20.0000.00817.63
8.1.10.0060.00317.55
8.1.00.0030.00617.38
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0040.00418.44
8.0.270.0070.00017.97
8.0.260.0000.00620.12
8.0.250.0030.00316.99
8.0.240.0030.00317.02
8.0.230.0030.00317.00
8.0.220.0030.00616.87
8.0.210.0000.00716.92
8.0.200.0030.00316.83
8.0.190.0080.00016.87
8.0.180.0040.00416.94
8.0.170.0040.00416.90
8.0.160.0000.00716.82
8.0.150.0040.00416.88
8.0.140.0030.00716.81
8.0.130.0000.00613.44
8.0.120.0050.00316.94
8.0.110.0050.00216.79
8.0.100.0080.00016.84
8.0.90.0090.00016.96
8.0.80.0030.01716.85
8.0.70.0040.00417.00
8.0.60.0000.00716.85
8.0.50.0020.00516.92
8.0.30.0110.01117.15
8.0.20.0070.01117.44
8.0.10.0030.00516.96
8.0.00.0110.00716.76
7.4.330.0020.00215.55
7.4.320.0030.00316.62
7.4.300.0000.00616.54
7.4.290.0070.00016.45
7.4.280.0020.00516.50
7.4.270.0070.00016.41
7.4.260.0060.00013.30
7.4.250.0070.00016.53
7.4.240.0030.00316.46
7.4.230.0040.00416.71
7.4.220.0020.00516.49
7.4.210.0060.01116.55
7.4.200.0030.00616.59
7.4.130.0110.00816.62
7.4.120.0150.00316.56
7.4.110.0030.01316.66
7.4.100.0110.00816.53
7.4.90.0090.00916.46
7.4.80.0120.00919.39
7.4.70.0060.00916.63
7.4.60.0100.01316.64
7.4.50.0070.00516.47
7.4.40.0160.00316.62
7.4.30.0080.00916.50
7.4.20.0070.00916.59
7.4.10.0090.01216.57
7.4.00.0050.01216.70
7.3.330.0030.00316.41
7.3.320.0030.00313.32
7.3.310.0030.00316.41
7.3.300.0080.00016.36
7.3.290.0080.00716.36
7.3.280.0100.01016.42
7.3.260.0170.01116.28
7.3.240.0090.01016.50
7.3.230.0120.01216.55
7.3.210.0030.01316.54
7.3.200.0170.00016.41
7.3.190.0030.01316.34
7.3.180.0040.01116.39
7.3.170.0160.02816.34
7.3.160.0150.00416.39
7.3.150.0100.00616.37
7.3.140.0070.01116.43
7.3.130.0120.00916.38
7.3.120.0090.00716.41
7.3.110.0100.00616.35
7.3.100.0100.01116.55
7.3.90.0070.01016.37
7.3.80.0060.01116.31
7.3.70.0070.01216.47
7.3.60.0040.01516.29
7.3.50.0130.00816.46
7.3.40.0110.01016.48
7.3.30.0090.01116.32
7.3.20.0120.00716.34
7.3.10.0070.01116.45
7.3.00.0110.00616.46
7.2.330.0160.00316.74
7.2.320.0110.01116.65
7.2.310.0090.00916.75
7.2.300.0030.01516.79
7.2.290.0030.01216.55
7.2.280.0060.01216.38
7.2.270.0100.01316.55
7.2.260.0120.00816.64
7.2.250.0090.00916.74
7.2.240.0080.01016.57
7.2.230.0090.01116.67
7.2.220.0130.00816.73
7.2.210.0140.00516.51
7.2.200.0090.01116.58
7.2.190.0100.01016.51
7.2.180.0080.01116.53
7.2.170.0170.00516.62
7.2.160.0100.00916.62
7.2.150.0090.00916.56
7.2.140.0100.00816.60
7.2.130.0130.00516.67
7.2.120.0100.00716.65
7.2.110.0110.00716.65
7.2.100.0060.01116.65
7.2.90.0100.01416.58
7.2.80.0100.01316.68
7.2.70.0070.01316.71
7.2.60.0080.01416.67
7.2.50.0080.01516.56
7.2.40.0110.01016.69
7.2.30.0080.01216.71
7.2.20.0090.01116.61
7.2.10.0130.01316.53
7.2.00.0110.00816.67

preferences:
67.19 ms | 400 KiB | 5 Q