3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Handler { public function handle($exception) { var_dump($exception->getTrace()[0]); } } class Foo { public function bar($baz) { throw new Exception($baz); } } try { (new Foo)->bar('this is the argument'); } catch (Exception $exception) { $handler = new Handler(); $handler->handle($exception); }

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.0160.00318.53
8.3.50.0140.00016.33
8.3.40.0090.01218.79
8.3.30.0090.00618.73
8.3.20.0040.00420.73
8.3.10.0000.00821.73
8.3.00.0080.00023.48
8.2.180.0060.00916.75
8.2.170.0090.00622.96
8.2.160.0100.00320.35
8.2.150.0030.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0040.00421.12
8.2.100.0060.00617.78
8.2.90.0080.00017.88
8.2.80.0050.00318.91
8.2.70.0050.00317.63
8.2.60.0040.00417.47
8.2.50.0080.00018.05
8.2.40.0000.00818.28
8.2.30.0040.00419.33
8.2.20.0070.00018.11
8.2.10.0000.00719.30
8.2.00.0000.00719.31
8.1.280.0140.00725.92
8.1.270.0040.00423.96
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0030.00622.60
8.1.230.0040.00820.77
8.1.220.0040.00418.42
8.1.210.0000.00818.77
8.1.200.0030.00517.25
8.1.190.0090.00017.36
8.1.180.0050.00318.10
8.1.170.0050.00317.62
8.1.160.0100.00018.94
8.1.150.0030.00518.89
8.1.140.0030.00520.69
8.1.130.0000.00720.32
8.1.120.0030.00517.43
8.1.110.0000.00717.47
8.1.100.0050.00317.43
8.1.90.0040.00417.36
8.1.80.0000.00717.52
8.1.70.0070.00017.34
8.1.60.0040.00717.61
8.1.50.0060.00317.49
8.1.40.0000.00817.54
8.1.30.0040.00417.66
8.1.20.0030.00517.66
8.1.10.0040.00417.44
8.1.00.0040.00417.49
8.0.300.0040.00419.98
8.0.290.0090.00016.75
8.0.280.0000.00818.39
8.0.270.0030.00317.90
8.0.260.0050.00319.97
8.0.250.0060.00016.92
8.0.240.0030.00316.83
8.0.230.0030.00316.85
8.0.220.0030.00516.86
8.0.210.0000.00716.91
8.0.200.0040.00416.84
8.0.190.0040.00416.95
8.0.180.0040.00416.82
8.0.170.0000.00816.94
8.0.160.0040.00416.77
8.0.150.0000.00716.91
8.0.140.0030.00616.95
8.0.130.0000.00613.47
8.0.120.0040.00416.92
8.0.110.0080.00017.02
8.0.100.0000.00717.02
8.0.90.0080.00016.92
8.0.80.0050.01016.96
8.0.70.0050.00316.82
8.0.60.0000.00817.00
8.0.50.0050.00216.90
8.0.30.0030.01317.26
8.0.20.0110.00917.16
8.0.10.0070.00017.10
8.0.00.0100.01116.73
7.4.330.0050.00016.73
7.4.320.0030.00316.46
7.4.300.0030.00316.61
7.4.290.0040.00416.41
7.4.280.0050.00316.41
7.4.270.0000.00716.52
7.4.260.0030.00313.39
7.4.250.0030.00316.52
7.4.240.0020.00516.43
7.4.230.0070.00016.69
7.4.220.0050.00216.40
7.4.210.0050.01216.57
7.4.200.0040.00416.51
7.4.130.0000.01816.53
7.4.120.0030.01716.71
7.4.110.0180.00016.51
7.4.100.0110.00716.49
7.4.90.0130.01016.47
7.4.80.0130.00619.39
7.4.70.0080.00816.61
7.4.60.0060.01016.50
7.4.50.0000.01716.57
7.4.40.0150.00616.70
7.4.10.0130.00616.42
7.4.00.0110.00816.42
7.3.330.0050.00316.54
7.3.320.0060.00013.30
7.3.310.0050.00216.49
7.3.300.0070.00016.46
7.3.290.0060.00916.45
7.3.280.0140.00016.55
7.3.260.0110.00716.43
7.3.240.0080.00916.53
7.3.230.0080.00916.39
7.3.210.0120.00616.31
7.3.200.0130.01016.51
7.3.190.0110.00816.29
7.3.180.0090.01216.45
7.3.170.0120.00616.45
7.3.160.0040.01216.60
7.3.130.0120.00816.27
7.3.120.0140.00716.19
7.3.110.0130.00616.44
7.3.100.0150.00516.46
7.3.90.0060.01416.28
7.3.80.0080.01216.37
7.3.70.0050.01416.16
7.3.60.0100.00816.34
7.3.50.0130.00816.29
7.3.40.0120.00616.32
7.3.30.0110.01216.28
7.3.20.0140.00616.26
7.3.10.0160.00316.44
7.3.00.0060.01216.23
7.2.330.0030.01416.61
7.2.320.0180.00016.58
7.2.310.0130.01016.79
7.2.300.0060.01116.60
7.2.290.0000.01616.51
7.2.260.0070.01416.39
7.2.250.0080.01316.67
7.2.240.0080.01116.34
7.2.230.0160.00316.54
7.2.220.0130.00616.63
7.2.210.0090.00916.58
7.2.200.0090.01316.64
7.2.190.0080.01316.30
7.2.180.0060.01216.45
7.2.170.0080.00816.56
7.2.160.0130.01016.37
7.2.150.0100.01116.28
7.2.140.0080.01216.54
7.2.130.0070.01016.40
7.2.120.0110.00816.41
7.2.110.0140.00616.61
7.2.100.0090.01216.64
7.2.90.0160.00316.36
7.2.80.0110.00716.30
7.2.70.0090.01516.44
7.2.60.0090.00816.64
7.2.50.0140.01216.48
7.2.40.0090.01616.52
7.2.30.0060.01716.56
7.2.20.0080.01616.56
7.2.10.0100.01416.41
7.2.00.0120.00516.46

preferences:
70.79 ms | 400 KiB | 5 Q