3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($argument) { try { echo "try\n"; return $argument; } finally { $argument++; unset($argument); echo "finally\n"; } } $counter = 2; $result = test($counter); var_dump($result);

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.0170.00318.55
8.3.50.0070.01218.42
8.3.40.0120.00318.68
8.3.30.0110.00418.56
8.3.20.0040.00421.73
8.3.10.0060.00319.14
8.3.00.0050.00321.89
8.2.180.0070.00716.32
8.2.170.0110.00422.96
8.2.160.0170.00318.91
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.54
8.2.110.0030.00620.39
8.2.100.0030.00917.48
8.2.90.0000.00917.84
8.2.80.0070.00417.97
8.2.70.0090.00018.04
8.2.60.0060.00318.09
8.2.50.0030.00618.10
8.2.40.0080.00021.07
8.2.30.0040.00420.30
8.2.20.0040.00418.09
8.2.10.0040.00418.91
8.2.00.0000.00818.08
8.1.280.0100.01025.92
8.1.270.0060.00322.34
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00922.25
8.1.230.0070.00720.87
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0040.00418.53
8.1.160.0000.00718.88
8.1.150.0040.00418.77
8.1.140.0080.00020.21
8.1.130.0030.00320.25
8.1.120.0070.00317.47
8.1.110.0000.00817.41
8.1.100.0030.00317.45
8.1.90.0000.00717.38
8.1.80.0040.00417.27
8.1.70.0030.00317.39
8.1.60.0060.00317.50
8.1.50.0050.00317.50
8.1.40.0030.00617.51
8.1.30.0000.00817.66
8.1.20.0000.00817.66
8.1.10.0040.00417.42
8.1.00.0070.00017.43
8.0.300.0060.00319.60
8.0.290.0030.00616.63
8.0.280.0040.00418.44
8.0.270.0000.00717.14
8.0.260.0000.00618.46
8.0.250.0080.00016.96
8.0.240.0000.00716.92
8.0.230.0030.00316.86
8.0.220.0040.00416.70
8.0.210.0040.00416.76
8.0.200.0000.00716.82
8.0.190.0000.00716.79
8.0.180.0040.00416.75
8.0.170.0040.00416.86
8.0.160.0070.00016.79
8.0.150.0060.00316.70
8.0.140.0050.00316.76
8.0.130.0000.00813.34
8.0.120.0080.00016.76
8.0.110.0000.00716.70
8.0.100.0070.00016.79
8.0.90.0040.00416.87
8.0.80.0130.00616.80
8.0.70.0040.00416.70
8.0.60.0070.00016.89
8.0.50.0000.00716.89
8.0.30.0070.01016.95
8.0.20.0100.00917.04
8.0.10.0040.00416.84
8.0.00.0100.00816.82
7.4.330.0050.00015.55
7.4.320.0030.00316.52
7.4.300.0030.00316.42
7.4.290.0030.00516.39
7.4.280.0040.00416.52
7.4.270.0090.00016.62
7.4.260.0000.00716.60
7.4.250.0000.00716.45
7.4.240.0000.00816.53
7.4.230.0040.00416.55
7.4.220.0040.00416.68
7.4.210.0060.00916.54
7.4.200.0000.00716.39
7.4.160.0080.01116.54
7.4.140.0110.00817.86
7.4.130.0060.01216.40
7.4.120.0090.00916.50
7.4.110.0090.00916.55
7.4.100.0170.00016.62
7.4.90.0120.00616.53
7.4.80.0100.00719.39
7.4.70.0120.00816.63
7.4.60.0090.00916.36
7.4.50.0120.00316.37
7.4.40.0110.00616.52
7.4.00.0040.00814.89
7.3.330.0030.00313.19
7.3.320.0060.00013.24
7.3.310.0040.00416.25
7.3.300.0070.00016.29
7.3.290.0000.00716.16
7.3.280.0060.01216.23
7.3.260.0120.00716.46
7.3.240.0100.00816.55
7.3.230.0070.01116.59
7.3.210.0180.00416.51
7.3.200.0140.01016.55
7.3.190.0100.00716.36
7.3.180.0030.01316.24
7.3.170.0030.01216.33
7.3.160.0060.01216.16
7.3.50.0090.00314.67
7.3.40.0120.00914.75
7.3.30.0070.00414.73
7.3.20.0030.01116.57
7.3.10.0000.01416.55
7.3.00.0030.01116.42
7.2.330.0090.00816.48
7.2.320.0090.00916.68
7.2.310.0070.01116.79
7.2.300.0170.00316.75
7.2.290.0090.00916.43
7.2.180.0060.01514.98
7.2.170.0110.00315.15
7.2.160.0070.00414.98
7.2.150.0060.00916.98
7.2.140.0150.00616.62
7.2.130.0140.01016.99
7.2.120.0040.00816.62
7.2.110.0110.00316.73
7.2.100.0140.00916.90
7.2.90.0030.01017.04
7.2.80.0110.00416.79
7.2.70.0070.00716.77
7.2.60.0080.00316.89
7.2.50.0030.01116.85
7.2.40.0100.00316.69
7.2.30.0080.00816.88
7.2.20.0070.00416.95
7.2.10.0070.00416.91
7.2.00.0070.00416.89
7.1.280.0030.00715.51
7.1.270.0060.00615.55
7.1.260.0070.00715.76
7.1.250.0100.00315.71

preferences:
50.3 ms | 401 KiB | 5 Q