3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $header = 0; $hitungLoopingObat= 9; do{ $remainder = ($i+1) % 5; $head = ($remainder+$i) % 5; $head_total = count($head); if($remainder == 1) echo "Header " .$header++. "\n"; echo "Obat Ke " . $head_total . "\n"; if( $remainder == 0) { echo "new line \n"; } $i++; } while($i <= $hitungLoopingObat); if($remainder > 0){ $loncat = (5 - $remainder)+1; for($j=0; $j<$loncat; $j++) { echo "Sisa New Line " .$loncat. "\n"; } }

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.0120.00618.31
8.3.50.0090.00618.26
8.3.40.0000.01518.51
8.3.30.0110.00418.81
8.3.20.0040.00421.91
8.3.10.0080.00023.55
8.3.00.0080.00023.70
8.2.180.0090.00918.50
8.2.170.0040.01418.86
8.2.160.0140.00422.96
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00021.13
8.2.120.0070.00026.35
8.2.110.0070.00421.07
8.2.100.0120.00017.91
8.2.90.0050.00318.03
8.2.80.0080.00018.10
8.2.70.0040.00418.03
8.2.60.0040.00417.80
8.2.50.0060.00318.22
8.2.40.0030.00519.13
8.2.30.0050.00319.32
8.2.20.0040.00417.95
8.2.10.0080.00018.14
8.2.00.0030.00618.04
8.1.280.0150.00425.92
8.1.270.0070.00023.88
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00423.79
8.1.230.0070.00420.94
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0040.00717.36
8.1.190.0060.00317.36
8.1.180.0000.00718.10
8.1.170.0040.00418.57
8.1.160.0040.00418.95
8.1.150.0050.00220.75
8.1.140.0000.00717.70
8.1.130.0040.00419.03
8.1.120.0020.00517.49
8.1.110.0050.00217.45
8.1.100.0000.00817.41
8.1.90.0040.00417.46
8.1.80.0040.00417.38
8.1.70.0030.00717.42
8.1.60.0000.00817.61
8.1.50.0030.00717.42
8.1.40.0090.00317.57
8.1.30.0060.00617.60
8.1.20.0040.00417.68
8.1.10.0000.00717.57
8.1.00.0000.00817.51
8.0.300.0070.00020.08
8.0.290.0050.00216.75
8.0.280.0030.00318.38
8.0.270.0080.00017.15
8.0.260.0030.00517.15
8.0.250.0070.00016.93
8.0.240.0040.00417.07
8.0.230.0070.00317.09
8.0.220.0000.00716.95
8.0.210.0040.00416.97
8.0.200.0040.00417.03
8.0.190.0070.00017.03
8.0.180.0020.00516.96
8.0.170.0040.00417.04
8.0.160.0050.00217.02
8.0.150.0030.00316.82
8.0.140.0070.00016.91
8.0.130.0030.00313.36
8.0.120.0000.00816.93
8.0.110.0040.00417.04
8.0.100.0000.00717.02
8.0.90.0000.00717.04
8.0.80.0080.00817.03
8.0.70.0050.00216.88
8.0.60.0030.00516.92
8.0.50.0030.00317.04
8.0.30.0080.01117.04
8.0.20.0160.00517.40
8.0.10.0080.00017.10
8.0.00.0130.00316.78
7.4.330.0020.00215.55
7.4.320.0080.00016.59
7.4.300.0000.00616.45
7.4.290.0040.00416.61
7.4.280.0000.00916.61
7.4.270.0040.00416.61
7.4.260.0030.00716.48
7.4.250.0030.00316.49
7.4.240.0000.00716.44
7.4.230.0040.00416.61
7.4.220.0050.00216.33
7.4.210.0070.00716.46
7.4.200.0050.00216.67
7.4.160.0080.00816.57
7.4.140.0130.00717.86
7.4.130.0100.00616.43
7.4.120.0070.01116.56
7.4.110.0160.00616.52
7.4.100.0110.00716.38
7.4.90.0120.00616.43
7.4.80.0120.00919.39
7.4.70.0080.00916.45
7.4.60.0110.00916.44
7.4.50.0090.00316.41
7.4.40.0070.01016.64
7.4.00.0110.00414.79
7.3.330.0000.00613.18
7.3.320.0050.00013.28
7.3.310.0030.00316.41
7.3.300.0000.00716.25
7.3.290.0030.00316.25
7.3.280.0090.01116.39
7.3.260.0100.01016.45
7.3.240.0110.00816.47
7.3.230.0130.00816.33
7.3.210.0140.00716.49
7.3.200.0060.01016.47
7.3.190.0160.00016.40
7.3.180.0070.01116.40
7.3.170.0100.00716.48
7.3.160.0100.01116.40
7.2.330.0120.00616.46
7.2.320.0100.01916.77
7.2.310.0090.01116.81
7.2.300.0170.00316.68
7.2.290.0070.01316.42
7.2.110.0080.00516.82
7.2.80.0030.00516.54
7.2.60.0040.01116.82
7.2.50.0070.00716.76
7.2.40.1450.00717.57
7.2.30.1640.00818.16
7.2.20.2210.00817.86
7.2.10.2290.01417.72
7.2.00.1620.01317.92
7.1.200.0040.00815.81
7.1.160.1740.00616.80
7.1.150.2120.00917.07
7.1.140.2060.00916.93
7.1.130.1830.01016.66
7.1.120.2160.01216.66
7.1.110.1470.01116.01
7.1.100.2040.00716.10
7.1.90.3550.00915.91
7.1.80.3260.01216.35
7.1.70.2300.00915.29
7.1.60.2640.01233.37
7.1.50.3060.01133.09
7.1.40.3720.01332.65
7.1.30.4370.01732.58
7.1.20.4300.01632.68
7.1.10.5510.00814.57
7.1.00.3720.01215.09

preferences:
62.91 ms | 400 KiB | 5 Q