3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP echo "<form method='post' >"; echo "<input type='text' name='eingabe'>"; echo "<input type='submit'>"; echo "</form>"; $e=$_POST['eingabe']; function geld500($e) { $multi=floor($e/500); $rest=$e%500; if($multi!=0) {echo "Anzahl der 500 Euro-Scheine: ", $multi, "<br>";} geld200($rest); } function geld200($e) { $multi=floor($e/200); $rest=$e%200; if($multi!=0) {echo "Anzahl der 200 Euro-Scheine: ", $multi, "<br>";} geld100($rest); } function geld100($e) { $multi=floor($e/100); $rest=$e%100; if($multi!=0) {echo "Anzahl der 100 Euro-Scheine: ", $multi, "<br>";} geld50($rest); } function geld50($e) { $multi=floor($e/50); $rest=$e%50; if($multi!=0) {echo "Anzahl der 50 Euro-Scheine: ", $multi, "<br>";} geld20($rest); } function geld20($e) { $multi=floor($e/20); $rest=$e%20; if($multi!=0) {echo "Anzahl der 20 Euro-Scheine: ", $multi, "<br>";} geld10($rest); } function geld10($e) { $multi=floor($e/10); $rest=$e%10; if($multi!=0) {echo "Anzahl der 10 Euro-Scheine: ", $multi, "<br>";} geld5($rest); } function geld5($e) { $multi=floor($e/5); $rest=$e%5; if($multi!=0) {echo "Anzahl der 5 Euro-Scheine: ", $multi, "<br>";} } if(isset($_POST['eingabe']) and $_POST['eingabe']!="") { if($e<=10000 and $e%5==0) { geld500($e); echo "<br> Summe: ", $e," Euro";} else {echo "<img src='http://i.imgur.com/dQXEDol.gif'>";} } else echo "Geben Sie bitte den Betrag ein!<br>"; ?>

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.0040.01118.30
8.3.50.0140.00722.11
8.3.40.0070.00718.79
8.3.30.0090.00619.07
8.3.20.0040.00420.20
8.3.10.0060.00321.89
8.3.00.0070.00019.25
8.2.180.0150.00418.54
8.2.170.0070.00722.96
8.2.160.0090.00622.21
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0000.00721.00
8.2.110.0060.00320.35
8.2.100.0040.00817.91
8.2.90.0030.00517.75
8.2.80.0050.00318.73
8.2.70.0040.00417.93
8.2.60.0000.00818.19
8.2.50.0040.00418.10
8.2.40.0000.00821.21
8.2.30.0000.00719.25
8.2.20.0050.00317.71
8.2.10.0000.00718.15
8.2.00.0040.00417.88
8.1.280.0140.00725.92
8.1.270.0090.00018.73
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00623.92
8.1.230.0000.01220.70
8.1.220.0000.00817.80
8.1.210.0050.00318.77
8.1.200.0090.00017.36
8.1.190.0080.00017.22
8.1.180.0040.00418.96
8.1.170.0040.00418.50
8.1.160.0040.00418.95
8.1.150.0000.00818.96
8.1.140.0040.00417.35
8.1.130.0060.00317.82
8.1.120.0030.00417.46
8.1.110.0000.00817.38
8.1.100.0000.00717.41
8.1.90.0020.00517.42
8.1.80.0040.00417.46
8.1.70.0030.00317.42
8.1.60.0060.00317.61
8.1.50.0060.00317.53
8.1.40.0000.00917.43
8.1.30.0040.00417.58
8.1.20.0040.00417.57
8.1.10.0050.00317.58
8.1.00.0030.00517.39
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0000.00718.40
8.0.270.0000.00717.28
8.0.260.0000.00717.32
8.0.250.0000.00716.96
8.0.240.0050.00217.08
8.0.230.0000.00717.03
8.0.220.0070.00016.84
8.0.210.0040.00416.89
8.0.200.0070.00016.93
8.0.190.0040.00416.91
8.0.180.0000.00717.00
8.0.170.0000.00816.98
8.0.160.0000.00817.04
8.0.150.0000.00716.98
8.0.140.0070.00016.87
8.0.130.0000.00613.36
8.0.120.0040.00416.94
8.0.110.0030.00516.90
8.0.100.0040.00417.04
8.0.90.0040.00416.96
8.0.80.0090.01316.98
8.0.70.0000.00717.01
8.0.60.0000.00816.92
8.0.50.0070.00016.93
8.0.30.0150.01117.13
8.0.20.0130.00917.40
8.0.10.0040.00417.09
8.0.00.0120.00816.68
7.4.330.0020.00215.03
7.4.320.0000.00616.62
7.4.300.0060.00016.62
7.4.290.0050.00216.60
7.4.280.0080.00016.43
7.4.270.0040.00416.63
7.4.260.0030.00316.54
7.4.250.0040.00416.35
7.4.240.0020.00516.64
7.4.230.0000.00716.58
7.4.220.0090.00916.56
7.4.210.0140.00716.57
7.4.200.0070.00016.60
7.4.160.0140.00916.63
7.4.150.0090.01517.40
7.4.140.0050.01217.86
7.4.130.0060.01116.58
7.4.120.0050.01516.56
7.4.110.0110.01116.40
7.4.100.0090.01016.39
7.4.90.0110.00716.61
7.4.80.0120.00919.39
7.4.70.0090.01216.52
7.4.60.0060.01316.53
7.4.50.0000.00816.69
7.4.40.0030.01316.57
7.4.30.0150.00316.71
7.4.00.0090.00315.12
7.3.330.0020.00413.43
7.3.320.0030.00313.20
7.3.310.0070.00016.28
7.3.300.0060.00016.34
7.3.290.0060.00916.42
7.3.280.0110.00516.42
7.3.270.0100.00717.40
7.3.260.0070.01716.36
7.3.250.0100.00716.54
7.3.240.0100.00716.44
7.3.230.0090.01116.47
7.3.210.0110.01116.60
7.3.200.0090.01219.39
7.3.190.0070.01016.47
7.3.180.0060.01016.42
7.3.170.0110.00816.49
7.3.160.0150.00016.54
7.2.330.0070.01016.65
7.2.320.0000.02016.68
7.2.310.0080.00816.74
7.2.300.0070.01416.70
7.2.290.0120.01216.32
7.2.60.0030.01316.85
7.2.00.0060.00619.18
7.1.200.0050.00515.73
7.1.100.0260.00618.29
7.1.70.0110.00417.00
7.1.60.0060.01919.22
7.1.50.0150.00616.60
7.1.00.0000.07722.31
7.0.200.0050.00516.60
7.0.140.0000.03722.01
7.0.60.0000.04319.93
7.0.50.0130.07717.98
7.0.40.0070.08720.13
7.0.30.0170.04320.21
7.0.20.0370.07320.05
7.0.10.0030.04320.12
7.0.00.0100.07720.27
5.6.280.0030.07020.83
5.6.210.0030.08320.77
5.6.200.0130.08018.16
5.6.190.0100.06320.39
5.6.180.0000.04720.39
5.6.170.0230.04720.50
5.6.160.0030.04720.46
5.6.150.0030.08718.16
5.6.140.0000.05018.19
5.6.130.0030.06018.27
5.6.120.0070.05321.13
5.6.110.0070.04320.99
5.6.100.0100.07020.89
5.6.90.0100.06320.97
5.6.80.0070.08720.41
5.5.350.4100.04320.39
5.5.340.0000.05718.11
5.5.330.0100.08320.28
5.5.320.0270.07320.51
5.5.310.0100.04720.34
5.5.300.0100.07717.98
5.5.290.0100.08318.08
5.5.280.0070.06020.78
5.5.270.0030.04020.90
5.5.260.0070.05720.91
5.5.250.0130.08020.68
5.5.240.0170.07020.17
5.4.450.0630.05319.59
5.4.440.0770.04319.56
5.4.430.0170.04319.22
5.4.420.0630.05319.21
5.4.410.0530.05319.26
5.4.400.0770.04719.26
5.4.390.0300.05018.79
5.4.380.0270.05718.54
5.4.370.0400.04018.80
5.4.360.0300.05018.52
5.4.350.0300.06318.76
5.4.340.0370.05318.51
5.4.320.0300.05318.59
5.4.310.0270.05318.89
5.4.300.0200.06018.75
5.4.290.0270.05018.83
5.4.280.0370.04718.71
5.4.270.0270.05018.76
5.4.260.0430.06018.79
5.4.250.0330.05018.63
5.4.240.0270.05718.63
5.4.230.0230.05718.74
5.4.220.0300.05318.56
5.4.210.0270.05318.56
5.4.200.0230.05316.58
5.4.190.0300.04718.83
5.4.180.0330.04718.82
5.4.170.0470.04718.64
5.4.160.0300.05018.52
5.4.150.0370.04318.74
5.4.140.0270.05016.25
5.4.130.0270.04716.22
5.4.120.0300.04316.27
5.4.110.0270.04716.25
5.4.100.0230.05316.27
5.4.90.0270.05016.45
5.4.80.0130.06016.32
5.4.70.0300.05016.28
5.4.60.0270.05316.44
5.4.50.0230.05316.26
5.4.40.0300.04716.45
5.4.30.0270.05016.27
5.4.20.0270.05016.39
5.4.10.0300.04716.42
5.4.00.0200.05315.91
5.3.290.0300.05014.67
5.3.280.0230.05014.60
5.3.270.0300.05014.63
5.3.260.0370.04714.76
5.3.250.0300.04714.68
5.3.240.0300.05014.65
5.3.230.0300.05014.75
5.3.220.0300.04714.61
5.3.210.0230.05714.60
5.3.200.0270.05314.64
5.3.190.0300.05014.60
5.3.180.0200.05314.62
5.3.170.0270.05314.72
5.3.160.0300.05014.63
5.3.150.0270.05714.63
5.3.140.0170.06014.80
5.3.130.0270.05314.55
5.3.120.0270.05314.63
5.3.110.0300.06014.56
5.3.100.0270.04714.19
5.3.90.0170.05714.10
5.3.80.0330.05014.14
5.3.70.0300.04714.13
5.3.60.0170.05714.24
5.3.50.0370.04313.98
5.3.40.0370.04013.98
5.3.30.0200.05313.97
5.3.20.0330.04713.81
5.3.10.0300.04013.72
5.3.00.0300.04313.68
5.2.170.0200.04311.18
5.2.160.0170.05011.24
5.2.150.0130.05011.29
5.2.140.0270.03711.36
5.2.130.0230.03311.12
5.2.120.0230.04011.19
5.2.110.0270.03011.33
5.2.100.0230.04011.23
5.2.90.0230.03711.17
5.2.80.0230.04311.24
5.2.70.0300.03711.20
5.2.60.0170.05011.18
5.2.50.0200.04711.09
5.2.40.0230.04011.24
5.2.30.0200.04011.01
5.2.20.0270.04711.01
5.2.10.0230.05010.93
5.2.00.0070.05010.84
5.1.60.0200.02710.21
5.1.50.0170.03710.08
5.1.40.0170.03710.00
5.1.30.0200.03010.43
5.1.20.0130.04010.52
5.1.10.0100.04310.09
5.1.00.0130.04010.22
5.0.50.0100.0338.68
5.0.40.0170.0208.48
5.0.30.0030.0508.45
5.0.20.0070.0308.33
5.0.10.0130.0238.41
5.0.00.0070.0478.18
4.4.90.0100.0206.43
4.4.80.0100.0206.43
4.4.70.0030.0276.43
4.4.60.0100.0206.43
4.4.50.0000.0306.43
4.4.40.0130.0336.43
4.4.30.0070.0276.43
4.4.20.0030.0276.43
4.4.10.0070.0276.43
4.4.00.0070.0376.43
4.3.110.0070.0236.43
4.3.100.0200.0106.43
4.3.90.0030.0276.43
4.3.80.0100.0336.43
4.3.70.0030.0306.43
4.3.60.0100.0206.43
4.3.50.0070.0276.43
4.3.40.0100.0306.43
4.3.30.0030.0236.43
4.3.20.0000.0276.43
4.3.10.0030.0236.43
4.3.00.0000.0237.23

preferences:
59.77 ms | 401 KiB | 5 Q