3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function action(){ throw new Exception('destroyer ?'); } public function __destruct(){ echo "i'm dying"; } } $o = new Test(); try { $o->action(); } catch(Exception $ex){ echo $ex->getMessage(); }

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.0090.00916.75
8.3.50.0130.00921.87
8.3.40.0040.01118.79
8.3.30.0100.00718.71
8.3.20.0040.00420.29
8.3.10.0000.00823.48
8.3.00.0080.00019.25
8.2.180.0180.00418.54
8.2.170.0100.00322.96
8.2.160.0070.00722.08
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0040.00417.63
8.2.120.0040.00426.35
8.2.110.0080.00022.20
8.2.100.0000.01117.93
8.2.90.0040.00419.23
8.2.80.0000.00917.97
8.2.70.0080.00017.75
8.2.60.0080.00018.04
8.2.50.0030.00618.07
8.2.40.0030.00619.31
8.2.30.0040.00420.50
8.2.20.0030.00617.80
8.2.10.0030.00518.16
8.2.00.0040.00418.06
8.1.280.0080.00825.92
8.1.270.0070.00322.00
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0090.00022.59
8.1.230.0080.00417.66
8.1.220.0060.00317.75
8.1.210.0080.00018.77
8.1.200.0060.00317.24
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0040.00418.44
8.1.160.0050.00321.96
8.1.150.0050.00218.94
8.1.140.0060.00319.61
8.1.130.0030.00317.74
8.1.120.0000.00717.47
8.1.110.0040.00717.48
8.1.100.0000.00817.36
8.1.90.0000.00717.35
8.1.80.0080.00017.35
8.1.70.0040.00417.30
8.1.60.0050.00317.63
8.1.50.0000.00817.53
8.1.40.0080.00017.44
8.1.30.0000.00817.62
8.1.20.0040.00417.70
8.1.10.0080.00017.46
8.1.00.0000.00817.42
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0040.00418.42
8.0.270.0030.00317.23
8.0.260.0000.00717.16
8.0.250.0040.00416.91
8.0.240.0000.00816.98
8.0.230.0070.00016.94
8.0.220.0000.00816.80
8.0.210.0040.00416.91
8.0.200.0060.00316.99
8.0.190.0000.00716.93
8.0.180.0000.00816.84
8.0.170.0040.00416.80
8.0.160.0000.00816.86
8.0.150.0030.00516.92
8.0.140.0100.00016.79
8.0.130.0000.00613.32
8.0.120.0040.00416.81
8.0.110.0070.00016.98
8.0.100.0040.00416.96
8.0.90.0040.00416.96
8.0.80.0090.00616.90
8.0.70.0040.00416.86
8.0.60.0040.00417.02
8.0.50.0050.00316.96
8.0.30.0140.00516.99
8.0.20.0090.01117.40
8.0.10.0000.00716.94
8.0.00.0030.01316.66
7.4.330.0020.00216.84
7.4.320.0030.00316.51
7.4.300.0030.00316.54
7.4.290.0040.00416.63
7.4.280.0000.00816.42
7.4.270.0040.00416.50
7.4.260.0000.00716.55
7.4.250.0000.00816.56
7.4.240.0040.00416.47
7.4.230.0030.00316.53
7.4.220.0070.01016.62
7.4.210.0110.00316.62
7.4.200.0050.00316.51
7.4.160.0070.00716.32
7.4.150.0160.00317.40
7.4.140.0120.00917.86
7.4.130.0120.00516.42
7.4.120.0120.01016.70
7.4.110.0110.00716.30
7.4.100.0170.00316.46
7.4.90.0130.00416.47
7.4.80.0080.00819.39
7.4.70.0060.00916.64
7.4.60.0090.00616.57
7.4.50.0130.00316.29
7.4.40.0110.00616.56
7.4.30.0070.01016.49
7.4.00.0100.00315.18
7.3.330.0000.00613.43
7.3.320.0050.00013.14
7.3.310.0030.00316.21
7.3.300.0030.00316.24
7.3.290.0070.00816.36
7.3.280.0120.00716.37
7.3.270.0130.00617.40
7.3.260.0160.00016.50
7.3.250.0090.00716.36
7.3.240.0050.01616.40
7.3.230.0100.00716.43
7.3.210.0070.01016.39
7.3.200.0130.00316.36
7.3.190.0060.01016.35
7.3.180.0100.01216.44
7.3.170.0160.00316.54
7.3.160.0140.00316.45
7.2.330.0140.00416.52
7.2.320.0100.01016.76
7.2.310.0070.01016.44
7.2.300.0070.01016.45
7.2.290.0210.00316.73
7.2.00.0070.00719.31
7.1.100.0040.01118.09
7.1.70.0070.00416.81
7.1.60.0090.01219.48
7.1.50.0040.01116.53
7.1.00.0030.07722.44
7.0.200.0360.00414.23
7.0.60.0100.07719.87
7.0.50.0100.07717.86
7.0.40.0170.08020.41
7.0.30.0200.04020.21
7.0.20.0270.03720.26
7.0.10.0070.05320.21
7.0.00.0170.03020.23
5.6.280.0030.07021.03
5.6.210.0070.07320.75
5.6.200.0130.03018.29
5.6.190.0100.07720.59
5.6.180.0300.06320.61
5.6.170.0230.08020.51
5.6.160.0100.05320.52
5.6.150.0100.03318.21
5.6.140.0070.07318.11
5.6.130.0070.08018.20
5.6.120.0070.08320.97
5.6.110.0130.06320.97
5.6.100.0000.07321.14
5.6.90.0030.04021.04
5.6.80.0070.06320.50
5.5.350.3630.03720.41
5.5.340.0170.06318.07
5.5.330.0100.07320.29
5.5.320.0470.04720.52
5.5.310.0330.06320.51
5.5.300.0030.04317.98
5.5.290.0030.08317.97
5.5.280.0130.07720.85
5.5.270.0100.08320.86
5.5.260.0300.05720.97
5.5.250.0100.05020.80
5.5.240.0800.07020.23

preferences:
39.02 ms | 401 KiB | 5 Q