3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("America/Chicago"); $num = $_POST['num']; if ((is_numeric($num)) && ($num >= "100.00")) { $percentage = 3; $num += $num*($percentage/100); $num = round($num, 1); // 4 $num = sprintf('%0.2f', $num); $link = '<a href="https://www.paypal.me/DigitalMusicServices/'.$num.'"><b>Click Here To Make This Payment</b></a>"'; echo "<b>Your payment with handling fees would be: $$num</b>"; echo "<br /><br />"; echo "<b>If you're ready to make this payment, please click the link below</b><br /><br />"; echo $link; } else { ?> <h4>Please enter the amount ($xxx.xx) $100.00 Mininum</h4> <form name='payment' method='POST' action='<?php echo htmlspecialchars($_SERVER['PHP_SELF']);?>'> <input type='text' name='num' size='20'> <input type='submit' name='Submit' value='Submit'> </form> <?php } ?>

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.0070.00718.55
8.3.60.0070.00718.27
8.3.50.0030.01018.30
8.3.40.0150.00018.92
8.3.30.0120.00318.70
8.3.20.0030.00519.11
8.3.10.0040.00423.27
8.3.00.0050.00323.51
8.2.190.0120.00316.63
8.2.180.0070.01116.50
8.2.170.0120.00322.96
8.2.160.0110.00319.46
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00622.12
8.2.120.0090.00026.35
8.2.110.0060.00319.27
8.2.100.0090.00318.03
8.2.90.0040.00420.60
8.2.80.0040.00419.09
8.2.70.0040.00418.05
8.2.60.0030.00618.16
8.2.50.0040.00418.10
8.2.40.0030.00519.47
8.2.30.0030.00320.50
8.2.20.0040.00418.13
8.2.10.0000.00718.03
8.2.00.0000.00719.53
8.1.280.0160.01025.92
8.1.270.0000.00822.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.52
8.1.230.0040.00720.96
8.1.220.0030.00517.74
8.1.210.0040.00418.81
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0030.00618.88
8.1.160.0000.00718.93
8.1.150.0070.00018.90
8.1.140.0000.00718.97
8.1.130.0000.00618.99
8.1.120.0050.00317.52
8.1.110.0020.00517.53
8.1.100.0000.00717.36
8.1.90.0030.00517.46
8.1.80.0030.00617.52
8.1.70.0050.00317.40
8.1.60.0070.00017.61
8.1.50.0040.00417.41
8.1.40.0030.00517.52
8.1.30.0000.00817.76
8.1.20.0080.00017.55
8.1.10.0050.00217.54
8.1.00.0030.00617.43
8.0.300.0000.00720.03
8.0.290.0060.00316.88
8.0.280.0000.00718.32
8.0.270.0000.00717.26
8.0.260.0000.00717.25
8.0.250.0030.00316.90
8.0.240.0000.00717.04
8.0.230.0040.00417.00
8.0.220.0040.00416.93
8.0.210.0040.00416.82
8.0.200.0030.00317.02
8.0.190.0050.00217.04
8.0.180.0030.00617.03
8.0.170.0050.00316.96
8.0.160.0050.00316.98
8.0.150.0030.00516.85
8.0.140.0040.00416.92
8.0.130.0000.00613.34
8.0.120.0000.00716.93
8.0.110.0040.00416.78
8.0.100.0070.00016.97
8.0.90.0040.00416.91
8.0.80.0140.00616.94
8.0.70.0000.00717.02
8.0.60.0000.00817.01
8.0.50.0050.00216.85
8.0.30.0110.00817.04
8.0.20.0130.00717.40
8.0.10.0050.00316.95
8.0.00.0060.01216.82
7.4.330.0000.00515.55
7.4.320.0000.00616.59
7.4.300.0030.00316.59
7.4.290.0040.00416.46
7.4.280.0040.00416.64
7.4.270.0080.00016.62
7.4.260.0030.00316.58
7.4.250.0070.00016.57
7.4.240.0040.00416.57
7.4.230.0030.00316.49
7.4.220.0050.00316.50
7.4.210.0120.00616.55
7.4.200.0000.00816.39
7.4.160.0110.00416.65
7.4.140.0100.00917.86
7.4.130.0100.00716.54
7.4.120.0090.00916.70
7.4.110.0080.00816.69
7.4.100.0140.00316.60
7.4.90.0070.01116.53
7.4.80.0150.00719.39
7.4.70.0100.01316.56
7.4.60.0120.00416.38
7.4.50.0120.00316.49
7.4.40.0130.00316.64
7.4.10.0070.01116.50
7.4.00.0070.01015.59
7.3.330.0050.00013.10
7.3.320.0030.00313.10
7.3.310.0040.00416.20
7.3.300.0030.00316.10
7.3.290.0030.00316.26
7.3.280.0070.00916.32
7.3.260.0110.00916.37
7.3.240.0090.01016.46
7.3.230.0110.00616.32
7.3.210.0120.01116.57
7.3.200.0130.00916.53
7.3.190.0090.00616.43
7.3.180.0170.00716.58
7.3.170.0120.00316.43
7.3.160.0130.00416.55
7.3.130.0040.00816.26
7.3.120.0070.01215.51
7.3.110.0120.00315.54
7.3.100.0090.00615.50
7.3.90.0050.00915.60
7.3.80.0030.00915.51
7.3.70.0050.00715.39
7.3.60.0040.00815.41
7.3.50.0020.01215.65
7.3.40.0010.01015.62
7.3.30.0060.00915.43
7.3.20.0100.00717.36
7.3.10.0070.01117.46
7.3.00.0060.00917.40
7.2.330.0120.00616.72
7.2.320.0040.01316.40
7.2.310.0090.00916.51
7.2.300.0130.00316.77
7.2.290.0150.00316.26
7.2.260.0120.00616.62
7.2.250.0120.00615.62
7.2.240.0040.01215.85
7.2.230.0050.00815.91
7.2.220.0080.00515.90
7.2.210.0060.01015.55
7.2.200.0070.00815.68
7.2.190.0070.00915.73
7.2.180.0070.00515.62
7.2.170.0000.01115.77
7.2.160.0090.01015.73
7.2.150.0080.00917.53
7.2.140.0050.01117.65
7.2.130.0080.00517.68
7.2.120.0070.00817.64
7.2.110.0080.00517.59
7.2.100.0050.00917.64
7.2.90.0060.00917.44
7.2.80.0200.00916.74
7.2.70.0370.00916.70
7.2.60.0020.01216.82
7.2.50.0300.00716.62
7.2.40.0150.01016.66
7.2.30.0060.00816.65
7.2.20.0270.00916.71
7.2.10.0440.01016.61
7.2.00.0310.00616.58
7.1.330.0050.01316.65
7.1.320.0030.01316.58
7.1.310.0030.00916.58
7.1.300.0080.00616.42
7.1.290.0060.00716.58
7.1.280.0030.00916.57
7.1.270.0050.01216.62
7.1.260.0080.00316.55
7.1.250.0020.00916.37
7.1.240.0000.01116.56
7.1.230.0010.00816.67
7.1.220.0050.00716.59
7.1.210.0050.00516.56
7.1.200.0050.00815.66
7.1.190.0300.00915.47
7.1.180.0280.00715.60
7.1.170.0210.01215.65
7.1.160.0080.00915.51
7.1.150.0230.00715.56
7.1.140.0290.00915.65
7.1.130.0260.00815.63
7.1.120.0300.00715.58
7.1.110.0280.00815.72
7.1.100.0350.01015.57
7.1.90.0090.00815.47
7.1.80.0190.00215.58
7.1.70.0090.00715.53
7.1.60.0580.01121.63
7.1.50.0630.00521.55
7.1.40.0390.00521.61
7.1.30.0560.01021.60
7.1.20.0370.00521.63
7.1.10.0430.00615.76
7.1.00.0310.00715.52
7.0.330.0000.01216.17
7.0.320.0040.00716.09
7.0.310.0020.01016.17
7.0.300.0000.01416.20
7.0.290.0050.00816.08
7.0.280.0070.00716.08
7.0.270.0080.00516.22
7.0.260.0030.01215.92
7.0.250.0090.00516.17
7.0.240.0050.00616.09
7.0.230.0080.00516.21
7.0.220.0080.00616.13
7.0.210.0060.00516.21
7.0.200.0030.00916.04
7.0.190.0050.00716.19
7.0.180.0090.00416.23
7.0.170.0080.00416.32
7.0.160.0050.01116.03
7.0.150.0030.01216.27
7.0.140.0050.00716.15
7.0.130.0050.00816.24
7.0.120.0060.00716.23
7.0.110.0070.00716.14
7.0.100.0060.00416.11
7.0.90.0050.00616.21
7.0.80.0050.00516.22
7.0.70.0050.00815.96
7.0.60.0050.01016.08
7.0.50.0030.01016.09
7.0.40.0050.00814.08
7.0.30.0030.01014.19
7.0.20.0020.00914.20
7.0.10.0040.00814.11
7.0.00.0060.00814.03
5.6.400.0090.00615.24
5.6.390.0060.00315.38
5.6.380.0070.00315.13
5.6.370.0060.00715.07
5.6.360.0060.00915.13
5.6.350.0070.00315.34
5.6.340.0030.01115.23
5.6.330.0030.00914.93
5.6.320.0020.01215.20
5.6.310.0060.00515.13
5.6.300.0060.00415.30
5.6.290.0020.01015.04
5.6.280.0060.00915.09
5.6.270.0050.00515.07
5.6.260.0050.00815.12
5.6.250.0050.01015.17
5.6.240.0050.00815.34
5.6.230.0060.01015.10
5.6.220.0050.00815.12
5.6.210.0070.00615.07
5.6.200.0030.00714.97
5.6.190.0010.01215.17
5.6.180.0080.00615.15
5.6.170.0040.00714.96
5.6.160.0050.00915.02
5.6.150.0070.00814.88
5.6.140.0070.00914.99
5.6.130.0020.01314.98
5.6.120.0050.00515.06
5.6.110.0070.00415.13
5.6.100.0080.00315.14
5.6.90.0090.00715.20
5.6.80.0070.00914.88
5.6.70.0060.00915.04
5.6.60.0060.00715.00
5.6.50.0030.00814.94
5.6.40.0080.00515.08
5.6.30.0040.00714.90
5.6.20.0070.00414.84
5.6.10.0050.00715.02
5.6.00.0040.00915.08

preferences:
61.67 ms | 401 KiB | 5 Q