3v4l.org

run code in 300+ PHP versions simultaneously
<?php $referenz_Zahl = 5; $aktuelle_Zahl = 1.5; $Abstand = 1; $ergebnis = 0; #&& is_int($ergebnis) && $ergebnis % $Abstand && is_int($ergebnis) if($aktuelle_Zahl < $referenz_Zahl) { do { $ergebnis = $ergebnis + $aktuelle_Zahl + $Abstand ; }while($ergebnis < $aktuelle_Zahl); echo '<br />IN der Schleife: '.$ergebnis; echo '<br />ERGEBNIS: '.$ergebnis; } ?>

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.0140.00716.63
8.3.50.0150.01021.91
8.3.40.0040.01118.78
8.3.30.0120.00318.42
8.3.20.0000.00720.30
8.3.10.0070.00023.69
8.3.00.0000.00719.85
8.2.180.0120.00818.41
8.2.170.0040.01122.96
8.2.160.0030.01020.57
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00019.38
8.2.120.0040.00426.35
8.2.110.0060.00320.44
8.2.100.0090.00318.03
8.2.90.0030.00619.13
8.2.80.0000.00817.97
8.2.70.0050.00517.50
8.2.60.0080.00017.93
8.2.50.0040.00718.07
8.2.40.0040.00422.27
8.2.30.0000.00820.62
8.2.20.0040.00417.75
8.2.10.0040.00418.02
8.2.00.0040.00418.10
8.1.280.0100.00725.92
8.1.270.0040.00420.32
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0040.00422.03
8.1.230.0090.00319.41
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00017.12
8.1.180.0070.00018.10
8.1.170.0050.00318.61
8.1.160.0060.00320.69
8.1.150.0030.00518.88
8.1.140.0040.00419.42
8.1.130.0030.00317.63
8.1.120.0060.00317.36
8.1.110.0040.00417.34
8.1.100.0050.00317.37
8.1.90.0070.00017.28
8.1.80.0030.00317.43
8.1.70.0070.00017.33
8.1.60.0040.00417.41
8.1.50.0040.00417.41
8.1.40.0040.00417.49
8.1.30.0030.00617.54
8.1.20.0000.00717.58
8.1.10.0050.00317.48
8.1.00.0060.00317.45
8.0.300.0080.00018.77
8.0.290.0050.00316.75
8.0.280.0030.00518.34
8.0.270.0000.00817.25
8.0.260.0060.00317.29
8.0.250.0040.00416.94
8.0.240.0050.00316.80
8.0.230.0030.00316.91
8.0.220.0000.00716.92
8.0.210.0030.00316.84
8.0.200.0000.00716.91
8.0.190.0090.00316.91
8.0.180.0040.00416.79
8.0.170.0070.00016.77
8.0.160.0030.00716.92
8.0.150.0040.00316.75
8.0.140.0000.00816.81
8.0.130.0030.00313.26
8.0.120.0000.00816.84
8.0.110.0030.00516.80
8.0.100.0040.00416.72
8.0.90.0070.00016.62
8.0.80.0100.00616.88
8.0.70.0050.00216.76
8.0.60.0040.00416.91
8.0.50.0050.00316.80
8.0.30.0100.00817.12
8.0.20.0120.01317.40
8.0.10.0000.00716.78
8.0.00.0070.01216.63
7.4.330.0050.00016.68
7.4.320.0020.00516.52
7.4.300.0030.00316.50
7.4.290.0040.00416.38
7.4.280.0030.00416.55
7.4.270.0070.00016.43
7.4.260.0000.00816.55
7.4.250.0030.00316.38
7.4.240.0030.00316.50
7.4.230.0070.00016.18
7.4.220.0180.00916.46
7.4.210.0090.00816.52
7.4.200.0070.00016.52
7.4.160.0030.01316.56
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0090.01316.37
7.4.120.0140.00316.39
7.4.110.0070.01016.37
7.4.100.0070.01116.41
7.4.90.0100.00716.29
7.4.80.0070.01019.39
7.4.70.0100.01016.38
7.4.60.0060.01716.43
7.4.50.0100.00516.16
7.4.40.0030.01316.55
7.4.30.0110.00616.48
7.4.00.0100.00314.77
7.3.330.0020.00212.92
7.3.320.0050.00012.95
7.3.310.0040.00416.05
7.3.300.0040.00416.03
7.3.290.0030.00316.18
7.3.280.0050.01016.21
7.3.270.0030.01317.40
7.3.260.0120.00916.36
7.3.250.0080.01016.24
7.3.240.0110.00616.25
7.3.230.0140.01016.39
7.3.210.0040.01416.19
7.3.200.0050.01116.14
7.3.190.0070.01016.52
7.3.180.0170.00316.52
7.3.170.0060.01616.36
7.3.160.0000.01516.18
7.2.330.0110.00716.68
7.2.320.0090.01216.54
7.2.310.0140.00216.65
7.2.300.0100.01016.44
7.2.290.0120.00616.49
7.2.80.0110.00016.53
7.2.60.0040.01216.70
7.2.00.0040.00819.20
7.1.200.0060.00315.84
7.1.100.0170.00017.87
7.1.70.0040.00417.21
7.1.60.0030.02119.52
7.1.50.0090.00416.84
7.1.00.0070.07322.46
7.0.200.0040.00416.50
7.0.100.0200.04719.89
7.0.90.0100.07719.96
7.0.80.0070.08719.97
7.0.70.0000.07319.87
7.0.60.0030.08319.95
7.0.50.0030.05320.38
7.0.40.0000.07720.03
7.0.30.0070.07320.09
7.0.20.0070.04320.19
7.0.10.0070.04020.10
7.0.00.0070.06020.09
5.6.280.0000.03721.11
5.6.250.0100.08020.75
5.6.240.0070.06720.54
5.6.230.0100.03720.66
5.6.220.0170.07320.66
5.6.210.0170.05020.63
5.6.200.0200.07321.03
5.6.190.0200.06721.16
5.6.180.0070.06021.08
5.6.170.0100.08721.17
5.6.160.0200.07321.04
5.6.150.0030.06721.04
5.6.140.0000.05720.93
5.6.130.0070.06321.10
5.6.120.0070.07021.01
5.6.110.0030.05020.99
5.6.100.0030.04721.04
5.6.90.0070.07720.98
5.6.80.0100.05020.31
5.6.70.0070.07720.30
5.6.60.0000.06720.32
5.6.50.0000.08320.33
5.6.40.0200.07020.38
5.6.30.0000.07020.39
5.6.20.0030.07720.30
5.6.10.0030.07020.29
5.6.00.0030.08020.45
5.5.380.0030.05320.39
5.5.370.0070.08320.55
5.5.360.0130.08320.39
5.5.350.0070.09320.38
5.5.340.0130.07020.64
5.5.330.0100.07320.80
5.5.320.0070.06020.73
5.5.310.0100.07320.90
5.5.300.0170.07020.86
5.5.290.0030.04720.91
5.5.280.0100.08020.86
5.5.270.0030.05020.89
5.5.260.0000.06320.88
5.5.250.0000.08320.57
5.5.240.0070.08020.29
5.5.230.0070.05320.30
5.5.220.0070.08320.28
5.5.210.0070.06020.29
5.5.200.0030.07720.21
5.5.190.0130.06320.26
5.5.180.0100.04020.07
5.5.160.0170.07020.16
5.5.150.0070.05720.17
5.5.140.0100.07720.26
5.5.130.0030.06320.17
5.5.120.0030.08020.15
5.5.110.0130.07020.23
5.5.100.0130.07019.91
5.5.90.0070.04019.96
5.5.80.0000.04320.05
5.5.70.0130.03720.03
5.5.60.0100.04019.99
5.5.50.0030.05020.11
5.5.40.0000.04719.92
5.5.30.0030.04020.04
5.5.20.0100.03720.04
5.5.10.0070.06319.98
5.5.00.0030.07720.10

preferences:
42.3 ms | 401 KiB | 5 Q