3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((function () { for ($i = 0; $i < 5; $i++) { try { return $i; } finally { try { if ($i != 3) throw Exception; } catch (Exception $e) {} } } })());

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.40.0140.00018.66
8.3.30.0140.00018.79
8.3.20.0070.00020.34
8.3.10.0000.00723.70
8.3.00.0080.00019.72
8.2.170.0110.00422.96
8.2.160.0070.00720.47
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0090.00021.00
8.2.120.0030.00526.35
8.2.110.0030.00620.54
8.2.100.0090.00317.93
8.2.90.0030.00519.17
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0070.00318.04
8.2.50.0040.00418.07
8.2.40.0090.00319.26
8.2.30.0000.00720.69
8.2.20.0030.00717.74
8.2.10.0000.00818.07
8.2.00.0000.00818.03
8.1.270.0040.00418.95
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0040.00424.03
8.1.230.0070.00419.57
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.25
8.1.190.0040.00417.63
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0040.00420.64
8.1.150.0040.00418.95
8.1.140.0080.00019.59
8.1.130.0000.00717.75
8.1.120.0070.00017.43
8.1.110.0050.00217.50
8.1.100.0060.00317.54
8.1.90.0040.00417.49
8.1.80.0040.00417.43
8.1.70.0000.00717.46
8.1.60.0040.00417.50
8.1.50.0050.00317.48
8.1.40.0090.00317.49
8.1.30.0050.00317.58
8.1.20.0000.00717.63
8.1.10.0040.00417.59
8.1.00.0030.00617.50
8.0.300.0040.00418.77
8.0.290.0000.00916.88
8.0.280.0030.00318.36
8.0.270.0000.00817.25
8.0.260.0030.00517.27
8.0.250.0000.00717.04
8.0.240.0070.00017.05
8.0.230.0000.00716.96
8.0.220.0000.00816.96
8.0.210.0000.00816.92
8.0.200.0000.00617.03
8.0.190.0040.00417.02
8.0.180.0080.00017.00
8.0.170.0070.00016.97
8.0.160.0000.00717.02
8.0.150.0080.00416.97
8.0.140.0080.00416.88
8.0.130.0060.00013.34
8.0.120.0040.00416.86
8.0.110.0000.00717.00
8.0.100.0000.00716.97
8.0.90.0030.00516.96
8.0.80.0060.01016.98
8.0.70.0020.00516.80
8.0.60.0040.00417.07
8.0.50.0050.00216.91
8.0.30.0060.01416.97
8.0.20.0100.01017.40
8.0.10.0070.00016.89
8.0.00.0080.00916.85
7.4.330.0000.00516.64
7.4.320.0000.00716.60
7.4.300.0040.00416.42
7.4.290.0040.00416.51
7.4.280.0060.00316.50
7.4.270.0030.00316.52
7.4.260.0030.00316.54
7.4.250.0000.00716.55
7.4.240.0020.00516.62
7.4.230.0070.00016.70
7.4.220.0040.01116.53
7.4.210.0030.01416.56
7.4.200.0040.00416.67
7.4.160.0070.01016.31
7.4.150.0150.00417.40
7.4.140.0090.01017.86
7.4.130.0070.01416.52
7.4.120.0120.00816.55
7.4.110.0130.01016.56
7.4.100.0060.01216.48
7.4.90.0090.00916.50
7.4.80.0060.01519.39
7.4.70.0130.00316.66
7.4.60.0060.00916.41
7.4.50.0000.01116.14
7.4.40.0090.00916.47
7.4.30.0140.00316.44
7.4.10.0100.00716.43
7.4.00.0030.01215.43
7.3.330.0080.00013.36
7.3.320.0000.00613.39
7.3.310.0000.00716.37
7.3.300.0070.00016.41
7.3.290.0000.00716.22
7.3.280.0070.00916.32
7.3.270.0070.01017.40
7.3.260.0120.01216.41
7.3.240.0070.01016.40
7.3.230.0150.00416.39
7.3.210.0090.00916.58
7.3.200.0140.00716.36
7.3.190.0080.00816.51
7.3.180.0090.00616.44
7.3.170.0070.01016.55
7.3.160.0120.00416.50
7.3.130.0040.01516.41
7.3.120.0080.01015.46
7.3.110.0090.00915.25
7.3.100.0070.00815.53
7.3.90.0070.00615.32
7.3.80.0040.01315.39
7.3.70.0080.00715.32
7.3.60.0060.00815.36
7.3.50.0030.00915.34
7.3.40.0070.00815.38
7.3.30.0090.00415.37
7.3.20.0080.00517.27
7.3.10.0040.00916.87
7.3.00.0070.01016.87
7.2.330.0030.01416.69
7.2.320.0100.00716.75
7.2.310.0090.00916.32
7.2.300.0060.00916.69
7.2.290.0100.00716.61
7.2.260.0110.00716.62
7.2.250.0090.00915.56
7.2.240.0070.01015.57
7.2.230.0080.00915.51
7.2.220.0070.00615.33
7.2.210.0050.01015.29
7.2.200.0080.00315.60
7.2.190.0040.01115.59
7.2.180.0030.00915.61
7.2.170.0030.01015.49
7.2.160.0120.00316.39
7.2.150.0090.00918.49
7.2.140.0080.01218.34
7.2.130.0120.00717.34
7.2.120.0140.00617.39
7.2.110.0120.00817.37
7.2.100.0090.00617.39
7.2.90.0090.00917.32
7.2.80.0070.01017.37
7.2.70.0120.00717.33
7.2.60.0110.00717.22
7.2.50.0090.00817.40
7.2.40.0060.01017.35
7.2.30.0060.00817.51
7.2.20.0090.00617.43
7.2.10.0090.01217.28
7.2.00.0070.00717.73
7.1.330.0070.00816.40
7.1.320.0020.01216.29
7.1.310.0090.00416.33
7.1.300.0070.00616.21
7.1.290.0060.00616.20
7.1.280.0040.00816.35
7.1.270.0080.00516.25
7.1.260.0050.00816.32
7.1.250.0020.01516.17
7.1.240.0040.01516.55
7.1.230.0070.00816.51
7.1.220.0140.00516.60
7.1.210.0100.00916.53
7.1.200.0100.00716.38
7.1.190.0110.00816.46
7.1.180.0040.01216.73
7.1.170.0090.00816.46
7.1.160.0080.00916.64
7.1.150.0060.01116.46
7.1.140.0040.01416.64
7.1.130.0090.00716.60
7.1.120.0060.00716.48
7.1.110.0050.00916.59
7.1.100.0220.00616.40
7.1.90.0120.00616.60
7.1.80.0110.00616.44
7.1.70.0080.00716.72
7.1.60.0100.00917.44
7.1.50.0060.00816.64
7.1.40.0090.00716.54
7.1.30.0050.00816.54
7.1.20.0060.00816.39
7.1.10.0030.01016.37
7.1.00.0060.02918.43
7.0.330.0110.00516.01
7.0.320.0070.01016.31
7.0.310.0000.01416.16
7.0.300.0050.00816.05
7.0.290.0100.00816.22
7.0.280.0020.01016.14
7.0.270.0080.00616.24
7.0.260.0040.00816.17
7.0.250.0050.00516.17
7.0.240.0060.00616.19
7.0.230.0090.00616.19
7.0.220.0070.00616.01
7.0.210.0080.00516.21
7.0.200.0070.00716.40
7.0.190.0090.00616.10
7.0.180.0120.00116.14
7.0.170.0080.00516.16
7.0.160.0050.00616.20
7.0.150.0040.00716.16
7.0.140.0050.00616.12
7.0.130.0070.00616.21
7.0.120.0050.00416.20
7.0.110.0020.01116.08
7.0.100.0100.00316.19
7.0.90.0050.00716.19
7.0.80.0050.00716.22
7.0.70.0050.00816.15
7.0.60.0070.03117.51
7.0.50.0060.03316.72
7.0.40.0050.01816.14
7.0.30.0110.02616.15
7.0.20.0140.03016.23
7.0.10.0100.02916.21
7.0.00.0080.02416.28
5.6.400.0070.01115.72
5.6.390.0040.01115.76
5.6.380.0090.00614.97
5.6.370.0070.00814.81
5.6.360.0080.00814.99
5.6.350.0080.00814.80
5.6.340.0100.00614.69
5.6.330.0020.01014.83
5.6.320.0040.00814.90
5.6.310.0090.01015.00
5.6.300.0130.00515.00
5.6.290.0030.01014.86
5.6.280.0030.01716.80
5.6.270.0070.00815.04
5.6.260.0050.00715.02
5.6.250.0070.00514.76
5.6.240.0050.01014.91
5.6.230.0060.00514.80
5.6.220.0070.00614.69
5.6.210.0060.03216.76
5.6.200.0040.03515.93
5.6.190.0060.03216.68
5.6.180.0170.03616.62
5.6.170.0100.02816.61
5.6.160.0050.02616.71
5.6.150.0050.02115.99
5.6.140.0060.02916.11
5.6.130.0140.02615.88
5.6.120.0050.03316.95
5.6.110.0090.02516.82
5.6.100.0080.02516.88
5.6.90.0080.03216.90
5.6.80.0030.02816.62
5.6.70.0090.00514.68
5.6.60.0040.00714.73
5.6.50.0040.00714.66
5.6.40.0080.00814.69
5.6.30.0050.01014.73
5.6.20.0070.00614.69
5.6.10.0070.00614.61
5.6.00.0090.00514.83
5.5.380.0090.00613.27
5.5.370.0020.01213.37
5.5.360.0030.00613.14
5.5.350.0040.02315.74
5.5.340.0070.02914.72
5.5.330.0020.02115.37
5.5.320.0160.01615.59
5.5.310.0080.02015.55
5.5.300.0060.01714.89
5.5.290.0070.03114.84
5.5.280.0040.02215.81
5.5.270.0060.02315.80
5.5.260.0060.02715.84
5.5.250.0050.01815.71
5.5.240.0070.02715.56
5.5.230.0040.00713.20
5.5.220.0030.00612.89
5.5.210.0020.01013.16
5.5.200.0050.00813.02
5.5.190.0010.01013.20
5.5.180.0050.00513.31
5.5.170.0060.00713.13
5.5.160.0040.00713.15
5.5.150.0050.00813.13
5.5.140.0080.00513.06
5.5.130.0090.00613.30
5.5.120.0050.00813.16
5.5.110.0060.00513.08
5.5.100.0080.00513.20
5.5.90.0070.00713.12
5.5.80.0040.00613.05
5.5.70.0050.00713.01
5.5.60.0060.00313.24
5.5.50.0010.00913.08
5.5.40.0030.01113.07
5.5.30.0060.00913.08
5.5.20.0030.00813.25
5.5.10.0020.00813.12
5.5.00.0070.00513.22

preferences:
50.42 ms | 400 KiB | 5 Q