3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bar { public function handleException(\Throwable $e){ echo $e->message(); } } class foo extends bar { public function handleException(\Exception $e) { echo $e->message(); } } $f = new foo(); $f->handleException(new \Exception('whoops'));

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.4.120.0100.01019.60
8.4.110.0130.00824.12
8.4.100.0060.00417.74
8.4.90.0050.00420.29
8.4.80.0120.00720.52
8.4.70.0110.00919.17
8.4.60.0030.00720.51
8.4.50.0110.01122.19
8.4.40.0000.00817.45
8.4.30.0060.00618.38
8.4.20.0070.00318.83
8.4.10.0070.00320.43
8.3.250.0050.00516.53
8.3.240.0140.00616.59
8.3.230.0100.00816.86
8.3.220.0130.00518.71
8.3.210.0130.00716.80
8.3.200.0050.00516.61
8.3.190.0100.00516.99
8.3.180.0120.00718.78
8.3.170.0180.00016.94
8.3.160.0120.00618.19
8.3.150.0070.01116.57
8.3.140.0160.00016.61
8.3.130.0070.00318.40
8.3.120.0050.00520.42
8.3.110.0000.00920.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0030.00719.36
8.3.70.0130.00318.30
8.3.60.0150.00316.75
8.3.50.0060.00723.68
8.3.40.0040.01121.77
8.3.30.0150.00018.59
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0050.00416.68
8.2.280.0070.00317.96
8.2.270.0150.00316.57
8.2.260.0030.00616.92
8.2.250.0080.00018.50
8.2.240.0050.00517.03
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0000.00826.77
8.2.200.0000.01018.88
8.2.190.0120.00616.58
8.2.180.0040.01125.92
8.2.170.0050.01018.79
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0080.00026.35
8.2.110.0000.00920.38
8.2.100.0040.00817.66
8.2.90.0040.00417.63
8.2.80.0000.00918.61
8.2.70.0000.00817.50
8.2.60.0040.00417.38
8.2.50.0050.00318.05
8.2.40.0000.00718.09
8.2.30.0000.00717.89
8.2.20.0080.00017.90
8.2.10.0040.00419.07
8.2.00.0000.00719.10
8.1.330.0110.00816.07
8.1.320.0120.00718.12
8.1.310.0170.00018.09
8.1.300.0150.00020.22
8.1.290.0040.00730.84
8.1.280.0040.01125.92
8.1.270.0050.00323.99
8.1.260.0000.00828.09
8.1.250.0050.00328.09
8.1.240.0040.00418.81
8.1.230.0070.00417.64
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0000.00817.10
8.1.180.0070.00018.62
8.1.170.0040.00418.65
8.1.160.0090.00018.67
8.1.150.0040.00418.81
8.1.140.0000.00718.71
8.1.130.0050.00320.06
8.1.120.0040.00417.34
8.1.110.0000.00817.20
8.1.100.0000.00817.32
8.1.90.0040.00417.37
8.1.80.0040.00417.16
8.1.70.0030.00317.17
8.1.60.0060.00317.37
8.1.50.0000.00817.41
8.1.40.0000.00817.36
8.1.30.0050.00217.50
8.1.20.0040.00417.51
8.1.10.0000.00717.28
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0080.00018.30
8.0.270.0070.00018.01
8.0.260.0030.00318.30
8.0.250.0030.00316.88
8.0.240.0000.00616.96
8.0.230.0000.00716.80
8.0.220.0000.00716.86
8.0.210.0030.00316.79
8.0.200.0000.00616.86
8.0.190.0080.00016.85
8.0.180.0000.00816.73
8.0.170.0030.00616.82
8.0.160.0040.00416.82
8.0.150.0000.00816.70
8.0.140.0030.00316.66
8.0.130.0060.00013.18
8.0.120.0000.00716.78
8.0.110.0070.00016.86
8.0.100.0030.00516.93
8.0.90.0070.00016.70
8.0.80.0050.01316.79
8.0.70.0000.00816.75
8.0.60.0080.00016.71
8.0.50.0040.00416.87
8.0.30.0110.01117.02
8.0.20.0100.01416.83
8.0.10.0000.00816.81
8.0.00.0070.01016.63
7.4.330.0000.00515.55
7.4.320.0030.00316.40
7.4.300.0030.00316.50
7.4.290.0060.00316.41
7.4.280.0050.00316.51
7.4.270.0000.01016.45
7.4.260.0000.00513.30
7.4.250.0080.00016.53
7.4.240.0070.00016.59
7.4.230.0000.00716.59
7.4.220.0030.00316.68
7.4.210.0060.00916.55
7.4.200.0030.00516.64
7.4.130.0120.00716.39
7.4.120.0150.00316.48
7.4.110.0060.01216.55
7.4.100.0120.00616.39
7.4.90.0150.00616.39
7.4.80.0140.00716.61
7.4.70.0030.01416.38
7.4.60.0090.01516.67
7.4.50.0110.00716.48
7.4.40.0100.00716.25
7.4.30.0050.01316.25
7.4.20.0090.00916.29
7.4.10.0120.00616.38
7.4.00.0040.01216.18
7.3.330.0030.00316.21
7.3.320.0050.00013.18
7.3.310.0080.00016.38
7.3.300.0030.00316.21
7.3.290.0080.00916.32
7.3.260.0080.01116.50
7.3.230.0100.00716.23
7.3.220.0080.00916.38
7.3.210.0090.00916.30
7.3.200.0000.01816.59
7.3.190.0140.01016.30
7.3.180.0090.00916.24
7.3.170.0000.01916.30
7.3.160.0100.00616.14
7.3.150.0120.00316.14
7.3.140.0070.01016.39
7.3.130.0040.01416.38
7.3.120.0100.00816.33
7.3.110.0100.00716.37
7.3.100.0080.01116.36
7.3.90.0110.00616.28
7.3.80.0130.00416.23
7.3.70.0120.00616.07
7.3.60.0080.00816.24
7.3.50.0030.01416.21
7.3.40.0130.00316.21
7.3.30.0030.01316.29
7.3.20.0100.00616.19
7.3.10.0140.00316.35
7.3.00.0080.01116.38
7.2.340.0000.01816.41
7.2.330.0170.00916.55
7.2.320.0110.01016.68
7.2.310.0100.01316.71
7.2.300.0060.01416.32
7.2.290.0140.00516.20
7.2.280.0130.00316.59
7.2.270.0090.00916.65
7.2.260.0090.00916.21
7.2.250.0130.00616.43
7.2.240.0130.00516.27
7.2.230.0060.01116.28
7.2.220.0040.01316.36
7.2.210.0130.00516.36
7.2.200.0080.00916.28
7.2.190.0150.00616.55
7.2.180.0050.01316.48
7.2.170.0130.00316.51
7.2.160.0100.00716.52
7.2.150.0090.00916.58
7.2.140.0080.01216.56
7.2.130.0130.00616.69
7.2.120.0190.00016.33
7.2.110.0090.00916.41
7.2.100.0070.01116.57
7.2.90.0130.00616.78
7.2.80.0440.00816.46
7.2.70.0130.01016.52
7.2.60.0100.01016.57
7.2.50.0100.01316.48
7.2.40.0060.01216.53
7.2.30.0160.00316.64
7.2.20.0070.01116.41
7.2.10.0130.00516.41
7.2.00.0080.00816.62

preferences:
34.51 ms | 403 KiB | 5 Q