3v4l.org

run code in 300+ PHP versions simultaneously
<?php function multipliedByReverseOrder($n) { for ($i = 1000; $i <= $n; $i++) { $initial_count = 1000; $j = 4; if (2 * $j - 13 * $i == 1) { $initial_count++; $result=2*$j-13*$i; if($result==2*$j-13*$i){ return; } $initial_count=$result; } echo $i . "The Result is:"; } } multipliedByReverseOrder(9999);

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.0100.00717.97
8.3.60.0140.01118.43
8.3.50.0090.01121.99
8.3.40.0130.00718.53
8.3.30.0130.00319.09
8.3.20.0000.00820.21
8.3.10.0090.00021.80
8.3.00.0080.00417.46
8.2.180.0130.00316.63
8.2.170.0170.00322.96
8.2.160.0130.00320.58
8.2.150.0070.00324.18
8.2.140.0040.00724.66
8.2.130.0060.00326.16
8.2.120.0060.00320.96
8.2.110.0070.00320.44
8.2.100.0100.00318.22
8.2.90.0030.00618.90
8.2.80.0050.00517.97
8.2.70.0080.00017.48
8.2.60.0040.00417.93
8.2.50.0070.00318.07
8.2.40.0000.00818.22
8.2.30.0050.00318.14
8.2.20.0050.00317.80
8.2.10.0040.00418.18
8.2.00.0040.00417.75
8.1.280.0040.01225.92
8.1.270.0070.00323.96
8.1.260.0040.00726.35
8.1.250.0060.00328.09
8.1.240.0100.00023.91
8.1.230.0040.00819.15
8.1.220.0090.00017.76
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.10
8.1.180.0050.00318.10
8.1.170.0080.00018.54
8.1.160.0030.00522.09
8.1.150.0040.00418.87
8.1.140.0040.00417.53
8.1.130.0040.00417.86
8.1.120.0030.00517.53
8.1.110.0060.00317.49
8.1.100.0030.00617.48
8.1.90.0040.00417.47
8.1.80.0040.00417.55
8.1.70.0040.00417.45
8.1.60.0030.00617.68
8.1.50.0060.00317.60
8.1.40.0000.00917.63
8.1.30.0060.00317.66
8.1.20.0050.00317.59
8.1.10.0000.00817.46
8.1.00.0080.00017.40
8.0.300.0000.00918.77
8.0.290.0060.00316.63
8.0.280.0000.00818.38
8.0.270.0000.00817.11
8.0.260.0060.00318.38
8.0.250.0030.00316.89
8.0.240.0050.00316.88
8.0.230.0060.00616.84
8.0.220.0000.00716.75
8.0.210.0040.00416.66
8.0.200.0040.00416.81
8.0.190.0060.00316.90
8.0.180.0000.00816.88
8.0.170.0040.00416.74
8.0.160.0000.00816.82
8.0.150.0040.00416.72
8.0.140.0080.00016.70
8.0.130.0020.00513.30
8.0.120.0040.00416.75
8.0.110.0030.00516.75
8.0.100.0040.00416.65
8.0.90.0040.00416.63
8.0.80.0220.00316.74
8.0.70.0040.00416.80
8.0.60.0080.00016.64
8.0.50.0000.00816.83
8.0.30.0170.01217.08
8.0.20.0140.01817.40
8.0.10.0040.00416.72
8.0.00.0210.00616.74
7.4.330.0030.00315.00
7.4.320.0000.00816.39
7.4.300.0060.00316.50
7.4.290.0070.00016.29
7.4.280.0000.00816.41
7.4.270.0070.00016.42
7.4.260.0000.00716.29
7.4.250.0000.00916.32
7.4.240.0050.00316.42
7.4.230.0070.00016.22
7.4.220.0170.00716.38
7.4.210.0040.01816.30
7.4.200.0000.00716.36
7.4.160.0120.01516.38
7.4.150.0180.01517.40
7.4.140.0160.01117.86
7.4.130.0190.00816.52
7.4.120.0140.01016.34
7.4.110.0160.01116.48
7.4.100.0060.01916.41
7.4.90.0090.01516.39
7.4.80.0170.01019.39
7.4.70.0030.01816.45
7.4.60.0170.00716.47
7.4.50.0000.00916.57
7.4.40.0150.00716.57
7.4.30.0240.00716.45
7.4.00.0150.00314.84
7.3.330.0030.00613.16
7.3.320.0000.00713.09
7.3.310.0080.00016.26
7.3.300.0050.00216.24
7.3.290.0070.01016.17
7.3.280.0110.01016.14
7.3.270.0280.00717.40
7.3.260.0210.01616.15
7.3.250.0200.00516.23
7.3.240.0140.02216.36
7.3.230.0170.01016.39
7.3.210.0220.00916.21
7.3.200.0160.00619.39
7.3.190.0120.01816.23
7.3.180.0150.01216.24
7.3.170.0210.00716.40
7.3.160.0110.01716.32
7.2.330.0110.01416.28
7.2.320.0070.01716.66
7.2.310.0140.01016.77
7.2.300.0090.01516.77
7.2.290.0140.00916.59
7.2.00.0060.00919.40
7.1.100.0000.01218.17
7.1.70.0000.00817.01
7.1.60.0140.00719.32
7.1.50.0060.00617.02
7.0.200.0030.00716.97

preferences:
38.78 ms | 401 KiB | 5 Q