3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(-2, 2); $b = range(-2, 2, 0.5); $opResults = []; $funcResults = []; foreach($a as $_a) { foreach($b as $_b) { $opResults[] = $_a ** $_b; $funcResults[] = pow($_a, $_b); } } var_dump($opResults == $funcResults, array_diff($opResults, $funcResults));

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.0070.00717.25
8.3.60.0140.00316.99
8.3.50.0100.00623.07
8.3.40.0070.00719.26
8.3.30.0000.01419.46
8.3.20.0050.00220.71
8.3.10.0030.00620.96
8.3.00.0000.00819.76
8.2.180.0090.00616.63
8.2.170.0130.00722.96
8.2.160.0100.00520.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0040.00421.27
8.2.110.0100.00019.35
8.2.100.0110.00018.09
8.2.90.0080.00019.50
8.2.80.0040.00417.97
8.2.70.0000.00817.73
8.2.60.0000.00818.28
8.2.50.0080.00018.59
8.2.40.0040.00422.45
8.2.30.0050.00321.34
8.2.20.0040.00418.07
8.2.10.0000.00818.43
8.2.00.0000.00717.91
8.1.280.0130.00725.92
8.1.270.0000.00824.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.92
8.1.230.0070.00317.95
8.1.220.0080.00017.90
8.1.210.0080.00018.77
8.1.200.0060.00317.60
8.1.190.0040.00417.88
8.1.180.0040.00418.10
8.1.170.0000.00818.76
8.1.160.0000.00719.07
8.1.150.0000.00719.17
8.1.140.0000.00917.67
8.1.130.0030.00318.09
8.1.120.0040.00417.75
8.1.110.0030.00517.74
8.1.100.0070.00017.59
8.1.90.0070.00017.68
8.1.80.0000.00717.74
8.1.70.0030.00317.73
8.1.60.0050.00317.94
8.1.50.0060.00317.83
8.1.40.0080.00017.65
8.1.30.0090.00017.93
8.1.20.0040.00417.75
8.1.10.0000.00817.77
8.1.00.0000.00817.70
8.0.300.0050.00218.77
8.0.290.0000.00716.98
8.0.280.0000.00718.70
8.0.270.0070.00017.50
8.0.260.0060.00017.48
8.0.250.0070.00017.13
8.0.240.0070.00017.24
8.0.230.0030.00317.14
8.0.220.0000.00817.22
8.0.210.0030.00317.02
8.0.200.0030.00517.20
8.0.190.0060.00317.14
8.0.180.0030.00317.28
8.0.170.0030.00517.21
8.0.160.0000.00717.04
8.0.150.0050.00317.13
8.0.140.0000.00717.10
8.0.130.0030.00613.57
8.0.120.0050.00317.02
8.0.110.0050.00316.93
8.0.100.0040.00417.07
8.0.90.0040.00416.97
8.0.80.0090.01217.02
8.0.70.0040.00417.17
8.0.60.0040.00417.02
8.0.50.0040.00417.09
8.0.30.0110.01117.14
8.0.20.0060.01317.54
8.0.10.0040.00417.20
8.0.00.0130.00616.94
7.4.330.0050.00015.43
7.4.320.0070.00016.83
7.4.300.0030.00316.93
7.4.290.0000.00716.72
7.4.280.0000.00816.94
7.4.270.0040.00416.82
7.4.260.0070.00016.89
7.4.250.0000.00816.74
7.4.240.0060.00116.76
7.4.230.0020.00516.86
7.4.220.0160.00616.85
7.4.210.0030.01116.77
7.4.200.0000.00716.90
7.4.160.0160.00016.70
7.4.150.0110.00717.40
7.4.140.0130.00717.86
7.4.130.0090.00716.73
7.4.120.0040.01516.87
7.4.110.0090.00916.78
7.4.100.0070.01016.76
7.4.90.0070.01016.86
7.4.80.0090.00919.39
7.4.70.0160.00016.72
7.4.60.0100.01316.74
7.4.50.0040.00416.67
7.4.40.0120.00816.73
7.4.30.0160.00016.87
7.4.00.0080.00815.25
7.3.330.0000.00613.41
7.3.320.0030.00313.34
7.3.310.0030.00316.63
7.3.300.0000.00616.53
7.3.290.0160.00316.57
7.3.280.0100.00716.58
7.3.270.0180.00017.40
7.3.260.0090.00816.70
7.3.250.0180.00416.70
7.3.240.0140.01116.64
7.3.230.0030.01316.46
7.3.210.0100.00716.90
7.3.200.0090.00919.39
7.3.190.0070.01016.85
7.3.180.0000.01916.66
7.3.170.0120.00916.71
7.3.160.0110.00716.45
7.2.330.0070.01016.84
7.2.320.0090.01316.75
7.2.310.0130.00716.79
7.2.300.0090.00917.01
7.2.290.0130.00316.68
7.2.110.0070.00416.86
7.2.100.0100.00316.99
7.2.90.0040.00717.03
7.2.80.0060.00616.93
7.2.70.0030.01217.24
7.2.60.0000.01417.28
7.2.50.0000.01117.35
7.2.40.0030.00616.99
7.2.30.0070.00717.31
7.2.20.0060.00316.95
7.2.10.0070.00717.19
7.2.00.0080.00417.29
7.1.230.0030.01015.75
7.1.220.0040.00815.72
7.1.210.0030.00615.82
7.1.200.0000.00816.07
7.1.190.0090.00616.00
7.1.180.0030.00915.71
7.1.170.0070.00415.65
7.1.160.0060.00316.13
7.1.150.0100.00016.01
7.1.140.0030.01015.98
7.1.130.0050.00516.26
7.1.120.0040.01116.00
7.1.110.0100.00316.16
7.1.100.0030.00815.94
7.1.90.0000.01115.81
7.1.80.0000.01115.87
7.1.70.0080.01016.71
7.1.60.0110.00817.81
7.1.50.0050.01416.62
7.1.40.0070.00716.05
7.1.30.6770.01015.95
7.1.20.0040.00816.20
7.1.10.0090.00616.09
7.1.00.0080.03819.37
7.0.310.0000.00815.58
7.0.300.0030.00715.66
7.0.290.0000.00815.86
7.0.280.0030.01015.84
7.0.270.0030.00715.79
7.0.260.0000.01115.69
7.0.250.0070.00415.79
7.0.240.0040.01115.72
7.0.230.0030.00715.71
7.0.220.0070.00315.66
7.0.210.0040.00715.52
7.0.200.0060.00516.32
7.0.190.0030.00615.77
7.0.180.0070.00315.70
7.0.170.0070.00415.76
7.0.160.0080.00915.78
7.0.150.0130.00515.53
7.0.140.0110.03518.80
7.0.130.0120.00015.72
7.0.120.0140.00315.79
7.0.110.0040.01115.27
7.0.100.0140.00415.59
7.0.90.0070.00715.83
7.0.80.0070.00715.49
7.0.70.0130.00015.63
7.0.60.0150.03818.86
7.0.50.0100.03817.01
7.0.40.0050.03217.05
7.0.30.0210.03816.82
7.0.20.0250.04016.83
7.0.10.0120.04216.88
7.0.00.0070.03717.15
5.6.380.0080.00414.81
5.6.370.0090.00614.98
5.6.360.0040.00414.30
5.6.350.0040.00714.65
5.6.340.0060.00614.66
5.6.330.0100.00314.62
5.6.320.0030.00715.02
5.6.310.0040.00414.59
5.6.300.0110.00314.64
5.6.290.0140.00014.59
5.6.280.0080.04018.03
5.6.270.0130.00314.62
5.6.260.0130.00414.61
5.6.250.0140.00314.86
5.6.240.0090.01114.61
5.6.230.0100.00514.66
5.6.220.0090.00614.66
5.6.210.0080.04317.65
5.6.200.0030.05016.55
5.6.190.0080.03117.69
5.6.180.0240.03217.63
5.6.170.0250.01817.72
5.6.160.0120.03717.58
5.6.150.0090.04216.39
5.6.140.0070.04216.47
5.6.130.0050.04716.54
5.6.120.0140.03518.04
5.6.110.0120.03317.98
5.6.100.0120.04318.01
5.6.90.0080.04018.01
5.6.80.0100.01717.63
5.6.70.0140.00014.50
5.6.60.0080.00814.29
5.6.50.0100.00514.72
5.6.40.0140.00014.73
5.6.30.0080.00414.54
5.6.20.0060.00714.31
5.6.10.0100.00314.57
5.6.00.0130.00014.79
5.5.380.0070.00711.13
5.5.370.0070.00710.89
5.5.360.0100.00310.57
5.5.350.0160.03915.64
5.5.340.0050.04314.45
5.5.330.0060.04315.59
5.5.320.0380.03615.43
5.5.310.0170.02515.63
5.5.300.0070.03214.53
5.5.290.0080.04014.43
5.5.280.0050.02615.68
5.5.270.0100.04015.98
5.5.260.0070.04415.83
5.5.250.0050.02315.76
5.5.240.0080.04015.58
5.5.230.0110.00010.75
5.5.220.0060.00311.00
5.5.210.0000.00910.97
5.5.200.0110.00010.75
5.5.190.0040.00410.76
5.5.180.0060.00010.68
5.5.170.0070.00414.11
5.5.160.0030.00610.81
5.5.150.0050.00510.81
5.5.140.0110.00010.73
5.5.130.0090.00210.98
5.5.120.0070.00210.63
5.5.110.0090.00310.97
5.5.100.0050.00510.94
5.5.90.0110.00010.98
5.5.80.0000.00910.48
5.5.70.0060.00610.76
5.5.60.0000.01210.91
5.5.50.0000.01210.76
5.5.40.0070.00710.56
5.5.30.0090.00010.99
5.5.20.0050.00310.95
5.5.10.0060.00310.59
5.5.00.0070.00310.98
5.4.450.0180.03915.14
5.4.440.0160.02215.02
5.4.430.0220.02315.16
5.4.420.0340.02015.18
5.4.410.0050.02315.00
5.4.400.0160.02514.91
5.4.390.0070.02714.83
5.4.380.0260.03514.73
5.4.370.0400.04014.69
5.4.360.0300.03514.62
5.4.350.0220.03514.56
5.4.340.0180.04314.74
5.4.330.0080.00310.72
5.4.320.0090.01911.74
5.4.310.0100.01911.73
5.4.300.0040.02811.60
5.4.290.0060.02111.55
5.4.280.0030.02311.57
5.4.270.0070.02211.57
5.4.260.0110.01811.54
5.4.250.0060.02011.61
5.4.240.0100.01711.56
5.4.230.0060.02111.69
5.4.220.0070.01911.52
5.4.210.0080.01811.50
5.4.200.0090.01911.58
5.4.190.0060.01911.64
5.4.180.0070.02111.50
5.4.170.0060.02011.65
5.4.160.0070.01911.62
5.4.150.0080.02011.54
5.4.140.0060.01911.45
5.4.130.0060.01911.33
5.4.120.0050.02011.56
5.4.110.0060.02111.60
5.4.100.0030.02111.57
5.4.90.0060.02111.34
5.4.80.0090.01911.43
5.4.70.0050.02211.47
5.4.60.0070.01911.35
5.4.50.0060.02011.43
5.4.40.0100.02311.25
5.4.30.0070.02611.43
5.4.20.0060.01911.30
5.4.10.0070.02111.40
5.4.00.0050.02211.21
5.3.290.0070.02611.54
5.3.280.0100.02011.37
5.3.270.0080.02711.42
5.3.260.0050.02911.45
5.3.250.0060.02611.45
5.3.240.0060.02711.33
5.3.230.0070.02411.41
5.3.220.0100.02111.40
5.3.210.0110.02811.42
5.3.200.0070.02011.42
5.3.190.0070.02511.34
5.3.180.0070.02311.40
5.3.170.0070.02711.40
5.3.160.0080.02311.49
5.3.150.0070.01811.54
5.3.140.0090.01911.33
5.3.130.0080.02311.44
5.3.120.0070.02011.45
5.3.110.0070.02811.47
5.3.100.0040.02411.15
5.3.90.0080.02411.21
5.3.80.0090.02411.07
5.3.70.0080.01911.17
5.3.60.0060.01911.19
5.3.50.0070.01911.14
5.3.40.0050.02310.99
5.3.30.0060.01911.04
5.3.20.0070.02210.85
5.3.10.0040.02510.76
5.3.00.0050.02110.78
5.2.170.0070.0189.26
5.2.160.0040.0189.22
5.2.150.0080.0169.27
5.2.140.0070.0149.15
5.2.130.0050.0179.19
5.2.120.0050.0169.08
5.2.110.0030.0189.21
5.2.100.0070.0199.20
5.2.90.0060.0249.18
5.2.80.0030.0189.01
5.2.70.0090.0179.12
5.2.60.0040.0229.07
5.2.50.0040.0249.21
5.2.40.0070.0248.99
5.2.30.0020.0218.97
5.2.20.0060.0149.07
5.2.10.0090.0198.95
5.2.00.0060.0198.84
5.1.60.0050.0168.36
5.1.50.0040.0178.35
5.1.40.0040.0198.34
5.1.30.0080.0208.52
5.1.20.0020.0188.53
5.1.10.0020.0228.39
5.1.00.0050.0138.39
5.0.50.0030.0127.63
5.0.40.0030.0107.56
5.0.30.0060.0197.46
5.0.20.0040.0137.46
5.0.10.0020.0147.45
5.0.00.0030.0197.45
4.4.90.0050.0126.71
4.4.80.0030.0166.70
4.4.70.0030.0106.70
4.4.60.0050.0076.70
4.4.50.0020.0106.71
4.4.40.0020.0136.67
4.4.30.0020.0116.70
4.4.20.0030.0106.74
4.4.10.0010.0106.74
4.4.00.0010.0196.70
4.3.110.0030.0096.65
4.3.100.0020.0136.65
4.3.90.0040.0106.63
4.3.80.0040.0136.61
4.3.70.0010.0156.63
4.3.60.0030.0096.63
4.3.50.0010.0116.63
4.3.40.0020.0146.59
4.3.30.0010.0115.97
4.3.20.0010.0115.96
4.3.10.0010.0095.94
4.3.00.0030.00911.78

preferences:
51.89 ms | 401 KiB | 5 Q