3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("EOL", "<br />\n"); $m = 3; for($i = 0; $i <= $m; $i++){ $k = $i ? floor(log($i, $m)) : 0; $l = 0; for($o = $k; $o >= 0; $o--){ $l += pow($m, $k); } echo $l, EOL; }

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.130.0060.00318.63
8.3.120.0030.00621.29
8.3.110.0040.00416.97
8.3.100.0060.00324.06
8.3.90.0030.00626.77
8.3.80.0030.00717.97
8.3.70.0180.00018.93
8.3.60.0070.00716.88
8.3.50.0110.00721.40
8.3.40.0120.00418.95
8.3.30.0150.00018.96
8.3.20.0070.00020.55
8.3.10.0070.00022.15
8.3.00.0080.00023.79
8.2.250.0120.00617.34
8.2.240.0060.00917.24
8.2.230.0040.00420.94
8.2.220.0000.01437.54
8.2.210.0030.00626.77
8.2.200.0000.00816.75
8.2.190.0070.01117.00
8.2.180.0130.01016.50
8.2.170.0040.01122.96
8.2.160.0040.01120.74
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.20
8.2.120.0040.00426.35
8.2.110.0080.00319.69
8.2.100.0080.00418.16
8.2.90.0000.00820.07
8.2.80.0030.00618.41
8.2.70.0050.00317.93
8.2.60.0080.00017.75
8.2.50.0000.00918.41
8.2.40.0040.00420.72
8.2.30.0070.00020.76
8.2.20.0050.00317.90
8.2.10.0020.00518.27
8.2.00.0040.00418.38
8.1.300.0080.00416.34
8.1.290.0030.00630.84
8.1.280.0070.01425.92
8.1.270.0130.00720.52
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0100.00022.86
8.1.230.0080.00323.00
8.1.220.0060.00318.01
8.1.210.0030.00718.85
8.1.200.0080.00017.60
8.1.190.0050.00517.38
8.1.180.0040.00418.10
8.1.170.0000.00818.94
8.1.160.0070.00019.05
8.1.150.0030.00320.55
8.1.140.0080.00019.72
8.1.130.0040.00417.83
8.1.120.0040.00417.61
8.1.110.0040.00417.56
8.1.100.0040.00417.57
8.1.90.0000.00717.66
8.1.80.0000.00717.71
8.1.70.0000.00717.59
8.1.60.0040.00417.74
8.1.50.0050.00317.62
8.1.40.0060.00317.68
8.1.30.0040.00417.83
8.1.20.0040.00417.80
8.1.10.0040.00417.70
8.1.00.0020.00517.66
8.0.300.0000.00720.14
8.0.290.0000.00716.75
8.0.280.0000.00818.56
8.0.270.0030.00317.41
8.0.260.0000.00617.43
8.0.250.0040.00417.12
8.0.240.0040.00417.19
8.0.230.0070.00017.05
8.0.220.0030.00317.12
8.0.210.0070.00017.13
8.0.200.0050.00317.22
8.0.190.0000.00817.09
8.0.180.0050.00217.20
8.0.170.0040.00417.07
8.0.160.0000.00717.18
8.0.150.0030.00516.97
8.0.140.0030.00417.07
8.0.130.0060.00313.60
8.0.120.0030.00617.16
8.0.110.0050.00317.12
8.0.100.0000.00717.11
8.0.90.0000.00716.93
8.0.80.0060.01016.96
8.0.70.0050.00216.95
8.0.60.0030.00516.91
8.0.50.0040.00417.20
8.0.30.0090.01117.28
8.0.20.0130.00617.46
8.0.10.0040.00417.09
8.0.00.0100.01017.01
7.4.330.0050.00017.03
7.4.320.0060.00016.79
7.4.300.0040.00416.87
7.4.290.0000.00616.84
7.4.280.0030.00516.67
7.4.270.0000.00716.73
7.4.260.0030.00616.63
7.4.250.0040.00416.82
7.4.240.0020.00516.83
7.4.230.0040.00416.84
7.4.220.0130.00916.65
7.4.210.0140.00016.60
7.4.200.0050.00216.88
7.4.160.0090.00616.70
7.4.150.0100.00717.40
7.4.140.0130.00817.86
7.4.130.0060.01116.71
7.4.120.0130.00516.71
7.4.110.0120.00616.80
7.4.100.0040.01416.46
7.4.90.0100.00716.64
7.4.80.0120.01319.39
7.4.70.0090.01316.54
7.4.60.0130.00716.56
7.4.50.0040.01116.58
7.4.40.0130.00716.57
7.4.30.0110.00416.64
7.4.00.0040.01215.50
7.3.330.0000.00713.38
7.3.320.0030.00313.46
7.3.310.0020.00516.37
7.3.300.0080.00016.62
7.3.290.0090.00816.58
7.3.280.0070.01116.54
7.3.270.0070.01017.40
7.3.260.0100.00716.75
7.3.250.0120.00816.64
7.3.240.0070.01116.63
7.3.230.0100.00716.73
7.3.210.0150.00416.73
7.3.200.0140.00419.39
7.3.190.0120.00616.42
7.3.180.0130.00316.53
7.3.170.0080.00816.43
7.3.160.0100.00716.69
7.3.120.0050.01215.23
7.3.110.0090.01015.51
7.3.100.0120.00415.19
7.3.90.0030.00715.27
7.3.80.0090.00615.30
7.3.70.0050.00915.25
7.3.60.0030.00815.29
7.3.50.0070.00815.23
7.3.40.0050.00815.27
7.3.30.0030.00715.25
7.3.20.0080.00717.01
7.3.10.0050.01117.09
7.3.00.0070.00517.10
7.2.330.0140.00316.78
7.2.320.0030.01216.78
7.2.310.0110.00616.64
7.2.300.0120.00916.80
7.2.290.0130.00916.84
7.2.250.0070.01015.10
7.2.240.0080.00815.52
7.2.230.0050.00915.34
7.2.220.0050.01215.60
7.2.210.0050.01215.43
7.2.200.0090.00515.41
7.2.190.0030.01015.25
7.2.180.0020.01215.32
7.2.170.0060.00815.50
7.2.160.0090.00615.07
7.2.150.0120.00417.41
7.2.140.0060.01017.59
7.2.130.0000.01317.01
7.2.120.0060.00917.12
7.2.110.0000.01017.13
7.2.100.0030.00717.25
7.2.90.0130.00317.45
7.2.80.0040.00817.31
7.2.70.0100.00717.50
7.2.60.0090.00417.02
7.2.50.0040.01117.09
7.2.40.0070.01017.29
7.2.30.0000.01217.23
7.2.20.0110.00717.49
7.2.10.0100.00717.35
7.2.00.0080.00718.66
7.1.330.0050.01216.27
7.1.320.0050.01016.17
7.1.310.0040.01116.19
7.1.300.0030.00916.22
7.1.290.0060.01016.17
7.1.280.0020.01216.42
7.1.270.0070.00816.05
7.1.260.0070.00716.11
7.1.250.0030.01016.21
7.1.240.0080.00615.95
7.1.230.0000.00915.95
7.1.220.0060.00616.28
7.1.210.0070.00716.17
7.1.200.0070.00716.10
7.1.190.0030.00615.91
7.1.180.0000.01316.18
7.1.170.0090.00616.37
7.1.160.0030.01216.27
7.1.150.0070.00716.08
7.1.140.0100.00716.24
7.1.130.0000.01516.33
7.1.120.0100.00316.18
7.1.110.0000.01516.23
7.1.100.0050.00517.38
7.1.90.0000.01516.16
7.1.80.0080.00416.22
7.1.70.0020.00817.02
7.1.60.0050.01217.78
7.1.50.0070.00316.73
7.1.40.0000.00916.02
7.1.30.0070.00716.16
7.1.20.0080.00416.12
7.1.10.0100.00715.91
7.1.00.0050.03919.40
7.0.330.0100.00315.73
7.0.320.0030.01015.76
7.0.310.0030.00715.98
7.0.300.0030.00715.66
7.0.290.0000.01315.65
7.0.280.0040.00415.71
7.0.270.0090.00615.94
7.0.260.0080.00015.58
7.0.250.0100.00415.56
7.0.240.0080.00616.04
7.0.230.0040.00815.82
7.0.220.0100.00015.80
7.0.210.0030.00915.92
7.0.200.0060.00316.27
7.0.190.0030.01215.92
7.0.180.0060.00615.89
7.0.170.0030.01215.95
7.0.160.0030.01015.58
7.0.150.0100.00715.87
7.0.140.0000.00915.73
7.0.130.0060.00615.84
7.0.120.0070.00315.77
7.0.110.0000.01015.62
7.0.100.0060.00315.59
7.0.90.0120.00315.80
7.0.80.0070.00715.83
7.0.70.0080.00815.97
7.0.60.0050.04818.96
7.0.50.0060.04317.00
7.0.40.0160.03017.01
7.0.30.0120.03417.23
7.0.20.0170.04017.06
7.0.10.0050.04817.16
7.0.00.0050.04117.25
5.6.400.0040.01115.02
5.6.390.0070.00714.77
5.6.380.0070.00714.76
5.6.370.0000.00914.69
5.6.360.0130.00015.09
5.6.350.0060.00914.70
5.6.340.0030.01314.73
5.6.330.0110.00315.01
5.6.320.0140.00014.75
5.6.310.0070.01015.05
5.6.300.0080.00414.51
5.6.290.0060.00614.80
5.6.280.0040.02217.88
5.6.270.0080.00014.81
5.6.260.0040.00715.13
5.6.250.0060.00614.83
5.6.240.0070.00714.80
5.6.230.0040.00414.80
5.6.220.0030.01014.65
5.6.210.0030.02817.86
5.6.200.0050.03816.61
5.6.190.0040.04617.79
5.6.180.0300.04217.87
5.6.170.0210.04017.76
5.6.160.0070.02517.71
5.6.150.0100.02816.67
5.6.140.0050.04216.65
5.6.130.0010.02716.67
5.6.120.0060.04818.08
5.6.110.0080.02218.08
5.6.100.0030.04218.10
5.6.90.0060.04617.99
5.6.80.0020.04517.64
5.6.70.0110.00614.61
5.6.60.0060.00614.71
5.6.50.0060.00914.59
5.6.40.0030.00914.40
5.6.30.0090.00614.70
5.6.20.0060.01014.63
5.6.10.0070.00714.85
5.6.00.0000.01114.76
5.5.380.0080.00814.56
5.5.370.0000.01414.56
5.5.360.0080.00414.71
5.5.350.0080.04817.79
5.5.340.0050.04716.50
5.5.330.0120.04217.54
5.5.320.0300.04017.58
5.5.310.0130.03517.79
5.5.300.0070.03516.48
5.5.290.0070.03916.30
5.5.280.0080.02217.79
5.5.270.0110.02718.03
5.5.260.0030.04617.87
5.5.250.0020.02717.86
5.5.240.0130.04017.52
5.5.230.0000.01814.83
5.5.220.0000.01614.88
5.5.210.0000.01214.47
5.5.200.0100.00314.63
5.5.190.0100.00614.79
5.5.180.0030.01014.74
5.5.170.0060.00314.91
5.5.160.0000.01214.80
5.5.150.0070.00714.28
5.5.140.0070.00714.50
5.5.130.0080.00414.65
5.5.120.0090.00914.82
5.5.110.0060.01214.60
5.5.100.0040.01214.52
5.5.90.0150.00414.46
5.5.80.0060.00314.45
5.5.70.0090.00614.57
5.5.60.0050.00514.46
5.5.50.0070.00314.75
5.5.40.0000.01114.52
5.5.30.0040.01114.81
5.5.20.0000.01414.72
5.5.10.0060.00614.79
5.5.00.0070.00714.52

preferences:
34.55 ms | 403 KiB | 5 Q