3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { throw new \Exception('Oups.'); } function test() { try { $foo = foo(); } catch (\Exception $e) { throw new \Exception('Another one'); } finally { if ($foo === null) { throw new \Exception('Third.'); } return $foo; } } var_dump(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.70.0140.00316.50
8.3.60.0110.00718.55
8.3.50.0090.00618.17
8.3.40.0040.01118.80
8.3.30.0070.00718.84
8.3.20.0000.00819.33
8.3.10.0040.00421.61
8.3.00.0040.00420.78
8.2.190.0090.00618.39
8.2.180.0120.00318.43
8.2.170.0120.00322.96
8.2.160.0040.01122.14
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00817.97
8.2.120.0040.00426.35
8.2.110.0060.00321.97
8.2.100.0040.00717.78
8.2.90.0040.00417.75
8.2.80.0080.00018.73
8.2.70.0000.00817.79
8.2.60.0090.00318.02
8.2.50.0040.00418.10
8.2.40.0040.00421.04
8.2.30.0030.00619.12
8.2.20.0040.00418.11
8.2.10.0030.00518.12
8.2.00.0040.00417.60
8.1.280.0160.00325.92
8.1.270.0080.00018.83
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00020.89
8.1.230.0000.01117.83
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0100.00017.21
8.1.190.0030.00617.52
8.1.180.0080.00018.10
8.1.170.0030.00518.52
8.1.160.0040.00418.89
8.1.150.0050.00318.77
8.1.140.0000.00722.16
8.1.130.0030.00321.95
8.1.120.0000.00817.40
8.1.110.0000.00717.43
8.1.100.0040.00417.46
8.1.90.0040.00417.41
8.1.80.0040.00417.35
8.1.70.0030.00317.49
8.1.60.0040.00417.50
8.1.50.0030.00517.45
8.1.40.0000.00917.50
8.1.30.0050.00517.73
8.1.20.0040.00417.60
8.1.10.0030.00517.59
8.1.00.0000.00817.56
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0030.00317.05
8.0.260.0040.00418.39
8.0.250.0030.00316.84
8.0.240.0030.00616.98
8.0.230.0030.00316.97
8.0.220.0000.00716.92
8.0.210.0000.00716.82
8.0.200.0030.00316.95
8.0.190.0000.00816.91
8.0.180.0040.00416.89
8.0.170.0000.00816.88
8.0.160.0030.00516.89
8.0.150.0030.00616.93
8.0.140.0030.00616.81
8.0.130.0030.00313.43
8.0.120.0040.00416.85
8.0.110.0000.00716.80
8.0.100.0000.00817.05
8.0.90.0000.00816.97
8.0.80.0110.00816.93
8.0.70.0020.00516.91
8.0.60.0040.00416.84
8.0.50.0000.00717.00
8.0.30.0100.00717.24
8.0.20.0080.01117.40
8.0.10.0040.00417.13
8.0.00.0110.00816.70
7.4.330.0050.00015.55
7.4.320.0030.00316.62
7.4.300.0060.00016.61
7.4.290.0000.00716.50
7.4.280.0050.00516.59
7.4.270.0040.00416.52
7.4.260.0040.00416.59
7.4.250.0050.00216.48
7.4.240.0000.00716.65
7.4.230.0040.00416.39
7.4.220.0040.00416.61
7.4.210.0050.01116.57
7.4.200.0030.00316.61
7.4.160.0120.00516.58
7.4.140.0110.00917.86
7.4.130.0130.00316.50
7.4.120.0100.00816.52
7.4.110.0060.01216.40
7.4.100.0120.01216.66
7.4.90.0090.00916.40
7.4.80.0110.00819.39
7.4.70.0080.00916.71
7.4.60.0040.01216.64
7.4.50.0090.00616.36
7.4.40.0070.01016.60
7.4.00.0090.00614.90
7.3.330.0000.00513.38
7.3.320.0060.00013.35
7.3.310.0060.00316.36
7.3.300.0030.00316.32
7.3.290.0000.00716.29
7.3.280.0100.01016.30
7.3.260.0080.01016.38
7.3.240.0090.00916.43
7.3.230.0060.01316.40
7.3.210.0070.01016.63
7.3.200.0090.00616.55
7.3.190.0140.00416.45
7.3.180.0060.00916.38
7.3.170.0150.01016.38
7.3.160.0130.00716.43
7.3.120.0000.01814.89
7.3.110.0070.01014.60
7.3.100.0100.00714.85
7.3.90.0040.00814.86
7.3.80.0110.00314.76
7.3.70.0090.00414.88
7.3.60.0090.00014.79
7.3.50.0110.00014.88
7.3.40.0050.00814.77
7.3.30.0070.00314.61
7.3.20.0040.00716.84
7.3.10.0080.00816.52
7.3.00.0030.01016.68
7.2.330.0110.00616.37
7.2.320.0120.00616.29
7.2.310.0030.01316.66
7.2.300.0110.00616.75
7.2.290.0030.01416.39
7.2.240.0060.01015.13
7.2.230.0110.00415.20
7.2.220.0070.00715.16
7.2.210.0090.00914.68
7.2.200.0030.01215.04
7.2.190.0030.01014.75
7.2.180.0090.00614.98
7.2.170.0040.01214.95
7.2.160.0070.00715.03
7.2.150.0040.00716.86
7.2.140.0100.00716.69
7.2.130.0080.01017.01
7.2.120.0020.01016.72
7.2.110.0170.00816.08
7.2.100.0160.00916.12
7.2.90.0170.00916.13
7.2.80.0210.00816.08
7.2.70.0200.00916.26
7.2.60.0180.00716.23
7.2.50.0250.00616.19
7.2.40.0180.00916.18
7.2.30.0150.01116.25
7.2.20.0180.01016.23
7.2.10.0160.00916.28
7.2.00.0230.00616.16
7.1.330.0060.01015.72
7.1.320.0070.00715.41
7.1.310.0100.00315.83
7.1.300.0060.00615.73
7.1.290.0030.00915.64
7.1.280.0030.01015.51
7.1.270.0090.00615.77
7.1.260.0130.00615.79
7.1.250.0050.01015.65
7.1.230.0760.01313.46
7.1.220.0390.01013.56
7.1.210.0500.01113.44
7.1.200.0580.00713.76
7.1.190.0610.00313.62
7.1.180.0500.00713.47
7.1.170.0990.00313.74
7.1.160.0450.00613.81
7.1.150.0460.01013.68
7.1.140.0620.00313.75
7.1.130.0480.00313.45
7.1.120.0690.00013.68
7.1.110.0530.01713.74
7.1.100.0690.00013.71
7.1.90.0470.00913.79
7.1.80.0530.01613.61
7.1.70.0600.00613.74
7.1.60.0820.00631.91
7.1.50.0900.01331.86
7.1.40.0910.01331.87
7.1.30.0800.00931.63
7.1.20.1200.00631.61
7.1.10.0720.00713.54
7.1.00.0620.01013.48
5.6.380.0060.01214.09

preferences:
52.43 ms | 401 KiB | 5 Q