3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $a; public function test() { try { echo 'doo stuff'; $this->a = 1; return 1; } catch (Exception $e) { $this->a = 2; throw $e; } finally { $this->a = 3; } } } $foo = new Foo(); $foo->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.0070.01116.50
8.3.50.0130.00921.10
8.3.40.0060.00918.84
8.3.30.0110.00418.54
8.3.20.0070.00020.16
8.3.10.0050.00223.65
8.3.00.0050.00221.94
8.2.180.0080.01118.41
8.2.170.0040.01322.96
8.2.160.0120.00320.51
8.2.150.0050.00324.18
8.2.140.0120.00324.66
8.2.130.0040.00421.00
8.2.120.0040.00426.35
8.2.110.0000.00919.33
8.2.100.0030.00918.04
8.2.90.0000.00819.07
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0050.00518.04
8.2.50.0040.00418.09
8.2.40.0090.00022.32
8.2.30.0000.00719.30
8.2.20.0000.00717.63
8.2.10.0080.00018.01
8.2.00.0050.00317.93
8.1.280.0070.00725.92
8.1.270.0080.00022.06
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00322.14
8.1.230.0070.00317.76
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0080.00018.45
8.1.160.0070.00020.75
8.1.150.0040.00418.85
8.1.140.0040.00419.52
8.1.130.0000.00717.61
8.1.120.0050.00317.42
8.1.110.0000.00717.29
8.1.100.0000.00717.47
8.1.90.0040.00417.41
8.1.80.0000.00717.41
8.1.70.0000.00717.32
8.1.60.0000.00917.42
8.1.50.0080.00017.53
8.1.40.0000.00817.59
8.1.30.0080.00017.50
8.1.20.0000.00717.54
8.1.10.0000.00817.59
8.1.00.0030.00517.41
8.0.300.0050.00318.77
8.0.290.0050.00216.75
8.0.280.0050.00318.45
8.0.270.0050.00217.31
8.0.260.0060.00017.13
8.0.250.0040.00416.93
8.0.240.0040.00416.89
8.0.230.0070.00016.87
8.0.220.0050.00216.83
8.0.210.0070.00016.90
8.0.200.0040.00416.96
8.0.190.0100.00016.92
8.0.180.0070.00016.87
8.0.170.0040.00416.83
8.0.160.0000.00816.85
8.0.150.0070.00016.88
8.0.140.0030.00416.70
8.0.130.0060.00013.20
8.0.120.0000.00916.82
8.0.110.0000.00716.81
8.0.100.0000.00816.78
8.0.90.0000.00716.67
8.0.80.0070.00716.78
8.0.70.0040.00416.65
8.0.60.0000.00716.70
8.0.50.0040.00416.74
8.0.30.0050.01016.97
8.0.20.0100.01017.43
8.0.10.0000.00816.91
8.0.00.0160.00416.67
7.4.330.0000.00516.83
7.4.320.0030.00316.46
7.4.300.0040.00416.58
7.4.290.0040.00416.61
7.4.280.0080.00016.41
7.4.270.0070.00016.61
7.4.260.0000.00716.52
7.4.250.0070.00016.45
7.4.240.0040.00416.59
7.4.230.0040.00416.26
7.4.220.0070.01316.58
7.4.210.0110.00416.63
7.4.200.0070.00016.61
7.4.160.0060.00916.44
7.4.150.0080.01117.40
7.4.140.0170.00917.86
7.4.130.0070.01116.54
7.4.120.0120.00516.32
7.4.110.0100.01016.55
7.4.100.0120.00616.51
7.4.90.0030.01416.47
7.4.80.0170.00019.39
7.4.70.0090.00916.55
7.4.60.0060.01016.60
7.4.50.0040.01416.52
7.4.40.0110.01316.57
7.4.30.0150.00616.40
7.4.00.0100.00614.84
7.3.330.0000.00513.09
7.3.320.0060.00013.09
7.3.310.0000.00716.10
7.3.300.0080.00016.27
7.3.290.0050.01116.26
7.3.280.0080.00716.29
7.3.270.0110.01117.40
7.3.260.0100.00716.52
7.3.250.0110.00616.55
7.3.240.0110.00816.41
7.3.230.0100.01016.39
7.3.210.0100.00616.27
7.3.200.0100.00719.39
7.3.190.0080.00816.21
7.3.180.0080.01416.25
7.3.170.0050.01316.36
7.3.160.0000.01616.28
7.3.10.0140.00316.51
7.3.00.0100.00316.45
7.2.330.0140.00316.46
7.2.320.0090.00916.75
7.2.310.0070.01416.51
7.2.300.0100.00616.75
7.2.290.0040.01216.70
7.2.130.0000.01216.71
7.2.120.0120.00016.77
7.2.110.0100.00716.86
7.2.100.0070.00716.89
7.2.90.0030.00916.87
7.2.80.0090.00716.50
7.2.70.0110.00017.04
7.2.60.0050.00916.86
7.2.50.0100.00716.76
7.2.40.0100.00317.04
7.2.30.0060.00616.67
7.2.20.0000.01316.71
7.2.10.0000.01316.88
7.2.00.0040.01116.82
7.1.250.0090.00615.59
7.1.200.0030.00915.76
7.1.70.0000.01616.80
7.1.60.0080.01519.40
7.1.50.0190.01016.88
7.1.00.0030.07722.40
7.0.200.0470.00714.48
7.0.60.0200.07721.59
7.0.50.0030.08317.93
7.0.40.0070.04720.10
7.0.30.0300.06720.02
7.0.20.0270.05020.06
7.0.10.0100.08720.07
7.0.00.0070.08320.16
5.6.280.0000.06021.14
5.6.210.0100.05320.48
5.6.200.0030.07318.18
5.6.190.0100.05720.50
5.6.180.0400.06720.39
5.6.170.0200.05020.58
5.6.160.0100.03720.55
5.6.150.0100.07718.24
5.6.140.0070.07718.14
5.6.130.0030.04018.11
5.6.120.0000.04721.14
5.6.110.0100.08021.12
5.6.100.0030.04021.11
5.6.90.0030.04321.00
5.6.80.0100.03720.53
5.5.350.0230.08020.38
5.5.340.0130.07717.92
5.5.330.0170.07320.29
5.5.320.0270.06020.25
5.5.310.0300.04320.34
5.5.300.0070.08318.01
5.5.290.0070.08718.07
5.5.280.0070.04720.77
5.5.270.0070.03720.87
5.5.260.0070.08320.96
5.5.250.0230.06020.50
5.5.240.0300.06720.16

preferences:
37.45 ms | 401 KiB | 5 Q