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; if($remainder == 1) echo "Header " .$header++. "\n"; echo "Obat Ke " . $remainder . "\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.40.0150.00018.66
8.3.30.0040.01118.64
8.3.20.0050.00321.69
8.3.10.0080.00023.66
8.3.00.0040.00423.71
8.2.170.0040.01118.91
8.2.160.0070.00722.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00220.99
8.2.120.0060.00326.35
8.2.110.0090.00022.21
8.2.100.0080.00417.78
8.2.90.0040.00417.79
8.2.80.0090.00019.03
8.2.70.0000.00817.80
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0070.00319.18
8.2.30.0050.00219.19
8.2.20.0000.00817.98
8.2.10.0040.00418.11
8.2.00.0000.00918.04
8.1.270.0030.00523.79
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0060.00320.77
8.1.230.0120.00420.99
8.1.220.0050.00317.78
8.1.210.0080.00018.77
8.1.200.0050.00317.23
8.1.190.0050.00517.23
8.1.180.0040.00418.10
8.1.170.0050.00318.70
8.1.160.0030.00618.82
8.1.150.0050.00320.83
8.1.140.0040.00417.58
8.1.130.0030.00618.96
8.1.120.0030.00517.47
8.1.110.0040.00417.47
8.1.100.0100.00017.48
8.1.90.0040.00417.28
8.1.80.0040.00417.52
8.1.70.0000.00917.43
8.1.60.0000.00817.58
8.1.50.0040.00417.49
8.1.40.0030.00717.41
8.1.30.0120.00017.54
8.1.20.0000.00817.60
8.1.10.0040.00417.46
8.1.00.0000.00817.50
8.0.300.0070.00020.27
8.0.290.0040.00416.72
8.0.280.0000.00618.46
8.0.270.0040.00416.74
8.0.260.0040.00417.13
8.0.250.0070.00016.87
8.0.240.0030.00316.93
8.0.230.0050.00316.96
8.0.220.0000.00716.81
8.0.210.0040.00416.78
8.0.200.0030.00316.90
8.0.190.0040.00416.79
8.0.180.0070.00016.92
8.0.170.0040.00416.88
8.0.160.0000.00716.84
8.0.150.0050.00216.87
8.0.140.0000.00716.87
8.0.130.0060.00013.26
8.0.120.0070.00016.87
8.0.110.0040.00416.88
8.0.100.0040.00416.92
8.0.90.0070.00016.77
8.0.80.0090.00616.84
8.0.70.0070.00016.74
8.0.60.0050.00216.93
8.0.50.0000.00716.89
8.0.30.0130.00517.16
8.0.20.0080.01517.40
8.0.10.0040.00416.96
8.0.00.0080.01016.92
7.4.330.0020.00215.55
7.4.320.0000.00616.45
7.4.300.0000.00716.63
7.4.290.0030.00316.51
7.4.280.0080.00016.63
7.4.270.0070.00016.61
7.4.260.0030.00716.52
7.4.250.0070.00016.39
7.4.240.0000.00716.43
7.4.230.0000.00716.73
7.4.220.0040.00416.41
7.4.210.0070.01016.58
7.4.200.0000.00716.71
7.4.160.0050.01116.52
7.4.140.0150.00417.86
7.4.130.0120.00416.40
7.4.120.0100.00916.49
7.4.110.0110.00816.52
7.4.100.0050.01116.51
7.4.90.0060.01216.57
7.4.80.0150.00619.39
7.4.70.0060.01316.57
7.4.60.0100.00716.51
7.4.50.0070.00716.57
7.4.40.0080.00816.49
7.4.10.0070.01214.91
7.4.00.0090.00815.04
7.3.330.0000.00513.04
7.3.320.0000.00513.22
7.3.310.0000.00716.29
7.3.300.0040.00416.34
7.3.290.0030.00316.28
7.3.280.0120.00716.31
7.3.260.0120.00716.34
7.3.240.0060.01016.38
7.3.230.0080.01116.34
7.3.210.0110.00716.25
7.3.200.0090.01216.26
7.3.190.0070.02316.39
7.3.180.0110.00516.28
7.3.170.0080.00816.63
7.3.160.0170.00016.34
7.3.130.0060.01014.79
7.3.120.0030.01314.90
7.3.110.0130.00514.82
7.3.100.0020.00914.81
7.3.90.0060.01114.69
7.3.80.0100.00214.96
7.3.70.0030.01014.73
7.3.60.0100.00414.87
7.3.50.0080.00814.89
7.3.40.0050.00814.71
7.3.30.0010.01314.92
7.3.20.0040.00716.74
7.3.10.0070.00716.64
7.3.00.0080.00516.57
7.2.330.0090.00916.56
7.2.320.0130.00616.56
7.2.310.0030.01616.36
7.2.300.0110.00616.69
7.2.290.0170.00616.46
7.2.260.0050.01215.07
7.2.250.0110.00715.03
7.2.240.0070.00915.07
7.2.230.0080.00814.96
7.2.220.0110.00615.01
7.2.210.0030.00914.95
7.2.200.0050.00815.11
7.2.190.0010.01015.13
7.2.180.0060.00915.00
7.2.170.0050.00715.08
7.2.160.0110.00314.88
7.2.150.0020.00816.86
7.2.140.0050.00916.95
7.2.130.0080.00616.89
7.2.120.0090.00516.74
7.2.110.0070.01116.82
7.2.100.0090.00716.75
7.2.90.0090.00816.80
7.2.80.0100.00616.78
7.2.70.0110.00816.70
7.2.60.0070.00916.94
7.2.50.0060.01216.83
7.2.40.0430.00917.20
7.2.30.0320.00716.96
7.2.20.0350.00717.02
7.2.10.0420.01217.08
7.2.00.0410.01017.16
7.1.330.0050.00915.75
7.1.320.0080.00315.64
7.1.310.0070.00715.78
7.1.300.0000.01315.83
7.1.290.0030.00815.69
7.1.280.0100.00415.85
7.1.270.0060.00815.84
7.1.260.0040.00715.84
7.1.250.0060.01015.72
7.1.240.0050.00915.68
7.1.230.0010.00715.67
7.1.220.0080.00615.85
7.1.210.0070.00715.84
7.1.200.0040.00815.80
7.1.190.0070.00315.49
7.1.180.0030.01115.88
7.1.170.0030.01015.90
7.1.160.0580.00616.07
7.1.150.0440.00816.15
7.1.140.0680.00916.11
7.1.130.0380.00915.96
7.1.120.0460.01016.04
7.1.110.0410.00815.93
7.1.100.0450.00915.84
7.1.90.0440.00616.03
7.1.80.0390.00715.83
7.1.70.0410.00915.53
7.1.60.0540.00921.49
7.1.50.0410.01021.48
7.1.40.0460.00821.33
7.1.30.0450.01121.49
7.1.20.0370.00921.39
7.1.10.0380.01015.27
7.1.00.0300.00715.29
7.0.330.0060.00615.39
7.0.320.0060.00515.45
7.0.310.0030.01015.38
7.0.300.0030.00815.48
7.0.290.0060.00315.55
7.0.280.0040.00815.32
7.0.270.0050.00715.52
7.0.260.0080.00515.38
7.0.250.0030.01015.63
7.0.240.0040.00715.60
7.0.230.0050.00715.36
7.0.220.0070.00515.34
7.0.210.0050.00715.52
7.0.200.0070.00615.50
7.0.190.0030.00715.57
7.0.180.0080.00515.51
7.0.170.0040.00715.63
7.0.160.0070.00615.58
7.0.150.0050.00815.36
7.0.140.0040.00915.50
7.0.130.0050.00715.29
7.0.120.0070.00515.32
7.0.110.0080.00615.49
7.0.100.0030.01015.46
7.0.90.0040.00915.32
7.0.80.0080.00615.45
7.0.70.0070.00715.31
7.0.60.0040.00915.21
7.0.50.0050.00815.49
7.0.40.0040.00513.60
7.0.30.0020.01213.50
7.0.20.0060.00813.55
7.0.10.0080.00613.60
7.0.00.0080.00413.52
5.6.400.0040.01214.47
5.6.390.0050.01014.27
5.6.380.0060.00614.45
5.6.370.0040.01114.29
5.6.360.0100.00414.33
5.6.350.0050.00814.38
5.6.340.0070.00414.30
5.6.330.0040.00714.34
5.6.320.0020.01114.61
5.6.310.0080.00514.26
5.6.300.0040.00914.45
5.6.290.0050.01214.34
5.6.280.0050.00814.54
5.6.270.0060.00714.44
5.6.260.0060.00414.43
5.6.250.0000.01514.45
5.6.240.0030.01214.27
5.6.230.0060.00714.27
5.6.220.0020.01114.29
5.6.210.0080.00614.34
5.6.200.0080.00714.30
5.6.190.0060.00614.36
5.6.180.0110.00514.26
5.6.170.0070.00814.40
5.6.160.0070.00714.29
5.6.150.0010.00914.24
5.6.140.0030.00714.20
5.6.130.0040.01014.23
5.6.120.0050.00914.32
5.6.110.0040.01314.26
5.6.100.0070.00314.30
5.6.90.0100.00614.27
5.6.80.0050.01114.21
5.6.70.0090.00814.21
5.6.60.0050.00514.12
5.6.50.0060.00914.30
5.6.40.0050.00814.38
5.6.30.0020.00914.30
5.6.20.0060.00514.33
5.6.10.0100.00514.23
5.6.00.0060.00414.09

preferences:
59.68 ms | 400 KiB | 5 Q