3v4l.org

run code in 300+ PHP versions simultaneously
<html> <title>Status</title> <body> <form action="altaltstatus.php" method="post"> <input type="radio" name="status" value="Here"> Here<br> <input type="radio" name="status" value="Away"> Away<br> <input type="submit" name="submit" value="Update Status" /> </form> <?php if(isset($_POST['submit'])) { $status = $_POST['status']; if (in_array($status, ['Here','Away'])) { file_put_contents(__DIR__.'/status.txt',$status); } else { exit(1); } } ?> </body> </html>

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.0110.00716.75
8.3.60.0110.01118.26
8.3.50.0060.01316.39
8.3.40.0120.00618.55
8.3.30.0120.00318.67
8.3.20.0000.00819.02
8.3.10.0050.00321.85
8.3.00.0080.00023.48
8.2.180.0110.00425.92
8.2.170.0000.01519.02
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0060.01324.66
8.2.130.0000.00726.16
8.2.120.0080.00019.54
8.2.110.0070.00320.82
8.2.100.0050.00517.91
8.2.90.0040.00417.90
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0040.00417.91
8.2.50.0000.00718.10
8.2.40.0060.00319.39
8.2.30.0000.00719.16
8.2.20.0040.00418.06
8.2.10.0040.00418.08
8.2.00.0000.00719.53
8.1.280.0070.00725.92
8.1.270.0000.00724.66
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00822.44
8.1.230.0070.00720.95
8.1.220.0080.00017.74
8.1.210.0050.00318.91
8.1.200.0030.00517.35
8.1.190.0030.00617.23
8.1.180.0000.00718.10
8.1.170.0000.00718.86
8.1.160.0050.00218.84
8.1.150.0020.00518.82
8.1.140.0050.00317.70
8.1.130.0040.00418.95
8.1.120.0070.00017.40
8.1.110.0040.00417.33
8.1.100.0040.00317.43
8.1.90.0000.00717.41
8.1.80.0070.00017.29
8.1.70.0060.00317.30
8.1.60.0040.00417.41
8.1.50.0040.00417.29
8.1.40.0040.00417.46
8.1.30.0050.00317.59
8.1.20.0000.00817.46
8.1.10.0080.00017.48
8.1.00.0090.00017.45
8.0.300.0040.00419.66
8.0.290.0070.00016.63
8.0.280.0080.00018.25
8.0.270.0070.00017.11
8.0.260.0000.00617.26
8.0.250.0070.00016.80
8.0.240.0040.00416.79
8.0.230.0040.00416.86
8.0.220.0000.00716.66
8.0.210.0000.00716.76
8.0.200.0000.00716.88
8.0.190.0050.00316.88
8.0.180.0000.00816.83
8.0.170.0050.00316.86
8.0.160.0040.00416.80
8.0.150.0060.00316.81
8.0.140.0040.00416.83
8.0.130.0000.00513.27
8.0.120.0040.00416.85
8.0.110.0060.00316.83
8.0.100.0040.00416.85
8.0.90.0000.00816.85
8.0.80.0100.00616.83
8.0.70.0070.00016.76
8.0.60.0000.00716.70
8.0.50.0000.00716.69
8.0.30.0130.00516.99
8.0.20.0110.00817.40
8.0.10.0040.00416.83
8.0.00.0140.00616.64
7.4.330.0020.00215.55
7.4.320.0060.00016.57
7.4.300.0070.00016.54
7.4.290.0030.00316.46
7.4.280.0000.00816.53
7.4.270.0030.00316.38
7.4.260.0000.00716.45
7.4.250.0000.00816.41
7.4.240.0000.00716.46
7.4.230.0040.00416.53
7.4.220.0040.00416.64
7.4.210.0070.00816.48
7.4.200.0000.00716.56
7.4.160.0060.00916.53
7.4.140.0080.01217.86
7.4.130.0150.00316.40
7.4.120.0130.00716.44
7.4.110.0090.00916.35
7.4.100.0110.00616.30
7.4.90.0060.01316.40
7.4.80.0120.00919.39
7.4.70.0100.00616.65
7.4.60.0100.00616.39
7.4.50.0060.01216.50
7.4.40.0110.00716.28
7.4.00.0000.01814.92
7.3.330.0050.00013.13
7.3.320.0050.00013.19
7.3.310.0000.00716.34
7.3.300.0040.00416.23
7.3.290.0040.00416.04
7.3.280.0050.01216.23
7.3.260.0070.01016.22
7.3.240.0080.01216.44
7.3.230.0100.01016.31
7.3.210.0100.01016.33
7.3.200.0030.01316.24
7.3.190.0120.00316.23
7.3.180.0120.00316.39
7.3.170.0070.01416.20
7.3.160.0000.01516.26
7.2.330.0120.00616.35
7.2.320.0090.01216.63
7.2.310.0040.00516.52
7.2.300.0100.01316.22
7.2.290.0120.00916.29
7.2.70.0130.01314.74
7.2.60.0130.00715.03
7.2.50.0220.00314.78
7.2.40.0100.01715.16
7.2.30.0130.01314.84
7.2.20.0200.00315.08
7.2.10.0160.00614.75
7.2.00.0170.00715.04
7.1.200.0030.00615.27
7.1.170.0130.00613.69
7.1.160.0110.01113.73
7.1.150.0150.00913.59
7.1.140.1180.00913.81
7.1.130.0150.00413.91
7.1.120.0180.00313.56
7.1.110.0150.00313.99
7.1.100.0190.00913.98
7.1.90.0070.01713.96
7.1.80.0140.01013.62
7.1.70.0140.01013.55
7.1.60.0330.01731.32
7.1.50.0340.01631.79
7.1.40.0360.02531.75
7.1.30.0660.01031.59
7.1.20.0380.01231.80
7.1.10.0150.00313.61
7.1.00.0100.01013.35

preferences:
52.11 ms | 401 KiB | 5 Q