3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { throw new \Exception('Oups.'); } function bar() { return 'Yay'; } try { $foo = bar(); } catch (\Exception $e) { throw new \Exception('Another one'); } finally { if ($foo === null) { throw new \Exception('Third.'); } return $foo; }

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.00418.43
8.3.50.0070.00718.34
8.3.40.0100.00318.58
8.3.30.0090.00618.59
8.3.20.0080.00019.31
8.3.10.0070.00021.89
8.3.00.0080.00020.58
8.2.180.0070.01118.16
8.2.170.0060.00922.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00417.91
8.2.120.0040.00426.35
8.2.110.0110.01119.08
8.2.100.0090.00317.78
8.2.90.0040.00417.50
8.2.80.0000.00817.97
8.2.70.0000.00817.55
8.2.60.0040.00418.21
8.2.50.0050.00318.10
8.2.40.0000.00819.17
8.2.30.0040.00419.11
8.2.20.0060.00318.05
8.2.10.0040.00417.99
8.2.00.0040.00417.59
8.1.280.0150.00325.92
8.1.270.0030.00618.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0150.00422.41
8.1.230.0070.00422.21
8.1.220.0030.00617.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0040.00418.38
8.1.160.0040.00418.70
8.1.150.0040.00418.82
8.1.140.0040.00422.19
8.1.130.0070.00022.04
8.1.120.0020.00517.36
8.1.110.0000.00717.45
8.1.100.0040.00417.43
8.1.90.0030.00517.29
8.1.80.0000.00717.28
8.1.70.0080.00017.40
8.1.60.0000.00817.46
8.1.50.0030.00617.52
8.1.40.0050.00317.52
8.1.30.0080.00417.67
8.1.20.0070.00017.56
8.1.10.0000.00717.45
8.1.00.0040.00417.30
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0040.00418.25
8.0.270.0000.00717.13
8.0.260.0000.00818.38
8.0.250.0000.00716.81
8.0.240.0040.00416.89
8.0.230.0000.00716.78
8.0.220.0000.00716.80
8.0.210.0000.00716.74
8.0.200.0070.00016.75
8.0.190.0040.00416.80
8.0.180.0040.00416.83
8.0.170.0040.00416.84
8.0.160.0080.00016.78
8.0.150.0070.00016.78
8.0.140.0050.00316.77
8.0.130.0030.00313.25
8.0.120.0040.00416.80
8.0.110.0080.00016.77
8.0.100.0050.00216.81
8.0.90.0030.00416.83
8.0.80.0080.00716.74
8.0.70.0000.00816.71
8.0.60.0040.00416.76
8.0.50.0000.00716.83
8.0.30.0130.00417.13
8.0.20.0150.00317.40
8.0.10.0050.00317.02
8.0.00.0070.01116.58
7.4.330.0000.00515.55
7.4.320.0030.00316.60
7.4.300.0030.00316.51
7.4.290.0060.00016.50
7.4.280.0050.00516.63
7.4.270.0070.00016.65
7.4.260.0030.00616.50
7.4.250.0000.00816.39
7.4.240.0000.00716.42
7.4.230.0070.00016.34
7.4.220.0050.00316.71
7.4.210.0100.00416.57
7.4.200.0000.00716.56
7.4.160.0090.01016.53
7.4.140.0110.00817.86
7.4.130.0100.00616.54
7.4.120.0080.01116.48
7.4.110.0090.00916.47
7.4.100.0080.00816.58
7.4.90.0100.00716.35
7.4.80.0060.01119.39
7.4.70.0140.00416.49
7.4.60.0150.00316.39
7.4.50.0070.00716.32
7.4.40.0000.01516.55
7.4.00.0080.00914.99
7.3.330.0060.00013.27
7.3.320.0030.00313.13
7.3.310.0060.00316.34
7.3.300.0040.00416.21
7.3.290.0060.00016.28
7.3.280.0030.01416.27
7.3.260.0110.00716.27
7.3.240.0070.01216.23
7.3.230.0060.01116.52
7.3.210.0070.01016.48
7.3.200.0140.00716.29
7.3.190.0120.00516.34
7.3.180.0060.00916.46
7.3.170.0020.00216.32
7.3.160.0120.00616.47
7.3.120.0070.01015.02
7.3.110.0070.00715.17
7.3.100.0100.00714.81
7.3.90.0060.01214.64
7.3.80.0030.00615.08
7.3.70.0130.00014.82
7.3.60.0100.00714.90
7.3.50.0040.01414.69
7.3.40.0000.01514.57
7.3.30.0090.00314.77
7.3.20.0030.01216.78
7.3.10.0050.00716.63
7.3.00.0020.01016.61
7.2.330.0100.00716.74
7.2.320.0180.00616.69
7.2.310.0090.00616.34
7.2.300.0110.00616.72
7.2.290.0030.01816.54
7.2.250.0060.01014.86
7.2.240.0070.01314.99
7.2.230.0130.00315.06
7.2.220.0060.00815.13
7.2.210.0080.00815.10
7.2.200.0040.01114.91
7.2.190.0000.01214.70
7.2.180.0070.01114.81
7.2.170.0000.01315.03
7.2.130.0100.00316.95
7.2.120.0040.00716.89
7.2.110.0310.00715.25
7.2.100.0280.00715.44
7.2.90.0170.00515.26
7.2.80.0230.00415.32
7.2.70.0170.00915.48
7.2.60.0470.00715.68
7.2.50.0330.00215.30
7.2.40.0140.00815.58
7.2.30.0190.00915.38
7.2.20.0340.00415.54
7.2.10.0550.01015.40
7.2.00.0350.00515.50
7.1.330.0070.00715.63
7.1.320.0000.01215.65
7.1.310.0030.01315.80
7.1.300.0100.00315.64
7.1.290.0040.01115.50
7.1.280.0090.00615.80
7.1.270.0090.00015.68
7.1.260.0000.00915.76
7.1.250.0030.00715.60
7.1.230.0400.01013.66
7.1.220.0380.00713.61
7.1.210.0880.00913.55
7.1.200.0580.00513.75
7.1.190.0190.00813.79
7.1.180.0220.00513.83
7.1.170.0180.00913.77
7.1.160.0550.00013.74
7.1.150.0110.00413.61
7.1.140.0460.00313.67
7.1.130.0510.00813.62
7.1.120.0410.00213.35
7.1.110.0400.01413.61
7.1.100.0180.01213.58
7.1.90.0490.00713.54
7.1.80.0180.01313.64
7.1.70.0400.00913.56
7.1.60.0390.01031.51
7.1.50.0440.00731.70
7.1.40.0380.00931.50
7.1.30.0480.00631.47
7.1.20.0370.00631.74
7.1.10.0490.00413.63
7.1.00.0420.00813.49
5.6.380.0130.00714.02

preferences:
64.38 ms | 401 KiB | 5 Q