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.60.0040.01118.30
8.3.50.0140.00416.21
8.3.40.0060.01219.02
8.3.30.0120.00318.58
8.3.20.0070.00019.11
8.3.10.0000.00721.69
8.3.00.0040.00423.70
8.2.180.0110.00418.43
8.2.170.0030.01022.96
8.2.160.0090.00518.68
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00322.24
8.2.120.0050.00326.35
8.2.110.0090.00021.04
8.2.100.0060.00917.91
8.2.90.0030.00618.96
8.2.80.0000.00817.97
8.2.70.0060.00317.80
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0040.00419.28
8.2.30.0000.00819.27
8.2.20.0000.00718.03
8.2.10.0040.00419.90
8.2.00.0030.00319.50
8.1.270.0070.00722.21
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.19
8.1.230.0040.00718.91
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0040.00418.74
8.1.160.0070.00018.75
8.1.150.0040.00418.83
8.1.140.0040.00417.63
8.1.130.0030.00318.95
8.1.120.0000.00717.36
8.1.110.0040.00417.42
8.1.100.0030.00317.33
8.1.90.0050.00217.45
8.1.80.0070.00017.43
8.1.70.0000.00817.32
8.1.60.0030.00617.55
8.1.50.0040.00417.50
8.1.40.0030.00617.41
8.1.30.0000.00717.42
8.1.20.0000.00717.59
8.1.10.0060.00317.41
8.1.00.0030.00517.43
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.32
8.0.270.0070.00017.21
8.0.260.0000.00617.07
8.0.250.0030.00316.88
8.0.240.0040.00416.90
8.0.230.0040.00416.88
8.0.220.0030.00316.83
8.0.210.0040.00416.73
8.0.200.0040.00416.76
8.0.190.0030.00516.89
8.0.180.0030.00516.75
8.0.170.0060.00316.86
8.0.160.0000.00716.79
8.0.150.0030.00716.82
8.0.140.0030.00316.73
8.0.130.0030.00313.29
8.0.120.0040.00416.81
8.0.110.0080.00016.79
8.0.100.0070.00016.77
8.0.90.0070.00016.83
8.0.80.0060.00916.75
8.0.70.0040.00416.70
8.0.60.0030.00316.63
8.0.50.0040.00416.73
8.0.30.0150.00417.02
8.0.20.0100.01117.40
8.0.10.0040.00416.95
8.0.00.0080.01216.55
7.4.330.0050.00016.79
7.4.320.0030.00316.49
7.4.300.0000.00716.43
7.4.290.0060.00016.44
7.4.280.0040.00416.44
7.4.270.0000.00716.60
7.4.260.0040.00416.57
7.4.250.0040.00416.50
7.4.240.0040.00416.46
7.4.230.0000.00716.43
7.4.220.0040.00416.29
7.4.210.0090.00716.49
7.4.200.0000.00716.65
7.4.140.0100.01017.86
7.4.130.0140.01016.47
7.4.120.0130.00716.46
7.4.110.0190.00316.54
7.4.100.0030.01316.41
7.4.90.0070.01016.40
7.4.80.0090.00919.39
7.4.70.0060.01016.49
7.4.60.0090.00616.41
7.4.50.0000.01816.41
7.4.40.0090.00916.60
7.4.00.0090.00614.79
7.3.330.0050.00012.96
7.3.320.0000.00513.08
7.3.310.0060.00016.24
7.3.300.0030.00316.23
7.3.290.0030.00316.21
7.3.280.0120.00316.26
7.3.260.0100.00916.29
7.3.240.0100.01016.31
7.3.230.0110.00616.30
7.3.210.0100.00716.21
7.3.200.0070.01016.18
7.3.190.0090.00616.20
7.3.180.0020.01516.16
7.3.170.0130.00716.15
7.3.160.0040.01116.22
7.3.10.0110.00416.47
7.3.00.0060.00616.46
7.2.330.0040.01316.73
7.2.320.0110.00816.64
7.2.310.0030.00516.21
7.2.300.0100.00616.55
7.2.290.0070.01416.73
7.2.130.0030.01016.93
7.2.120.0040.01116.85
7.2.110.0070.00716.75
7.2.100.0060.00616.99
7.2.90.0090.00316.85
7.2.80.0030.01016.80
7.2.70.0130.01015.92
7.2.60.0160.00215.84
7.2.50.0080.00815.97
7.2.40.0050.01115.78
7.2.30.0090.00715.80
7.2.20.0050.01216.11
7.2.10.0050.01415.87
7.2.00.0120.00815.94
7.1.250.0070.00715.81
7.1.200.0070.00515.58
7.1.170.0100.01313.90
7.1.160.0160.00613.67
7.1.150.0620.01013.74
7.1.140.0180.00013.78
7.1.130.0090.01513.89
7.1.120.0150.00913.82
7.1.110.0220.00313.48
7.1.100.0200.00313.45
7.1.90.0090.00913.98
7.1.80.0160.00613.45
7.1.70.0510.00913.17
7.1.60.0260.01031.64
7.1.50.0430.00631.58
7.1.40.0290.01931.90
7.1.30.0270.00931.81
7.1.20.0240.01031.89
7.1.10.0120.00413.68
7.1.00.0130.00313.23

preferences:
49.43 ms | 400 KiB | 5 Q