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.0030.01318.27
8.3.50.0110.00716.23
8.3.40.0070.01118.66
8.3.30.0180.00418.46
8.3.20.0040.00418.98
8.3.10.0070.00021.85
8.3.00.0040.00423.61
8.2.180.0040.01218.41
8.2.170.0070.00722.96
8.2.160.0040.01119.05
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.10
8.2.120.0000.00726.35
8.2.110.0070.00420.52
8.2.100.0060.00617.78
8.2.90.0060.00318.25
8.2.80.0080.00317.97
8.2.70.0050.00317.80
8.2.60.0030.00618.09
8.2.50.0000.00818.10
8.2.40.0000.00919.30
8.2.30.0000.00819.25
8.2.20.0070.00018.05
8.2.10.0050.00218.05
8.2.00.0000.00719.43
8.1.280.0190.00325.92
8.1.270.0120.00624.66
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0030.00620.91
8.1.230.0080.00422.68
8.1.220.0050.00317.79
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0050.00318.89
8.1.160.0000.00818.91
8.1.150.0000.00718.82
8.1.140.0040.00417.64
8.1.130.0000.00818.95
8.1.120.0040.00417.45
8.1.110.0030.00317.35
8.1.100.0030.00517.42
8.1.90.0040.00417.43
8.1.80.0030.00617.30
8.1.70.0030.00617.41
8.1.60.0030.00517.51
8.1.50.0000.00717.39
8.1.40.0000.00817.34
8.1.30.0050.00317.57
8.1.20.0040.00417.56
8.1.10.0040.00417.53
8.1.00.0040.00417.34
8.0.300.0000.00719.68
8.0.290.0040.00416.75
8.0.280.0070.00018.26
8.0.270.0030.00317.13
8.0.260.0060.00017.16
8.0.250.0070.00016.92
8.0.240.0000.00816.89
8.0.230.0040.00416.88
8.0.220.0030.00316.78
8.0.210.0080.00016.82
8.0.200.0000.00716.88
8.0.190.0000.00816.90
8.0.180.0060.00316.74
8.0.170.0030.00616.77
8.0.160.0040.00416.75
8.0.150.0030.00716.79
8.0.140.0070.00016.72
8.0.130.0060.00013.31
8.0.120.0050.00316.75
8.0.110.0030.00616.73
8.0.100.0000.00716.89
8.0.90.0040.00416.88
8.0.80.0100.00616.87
8.0.70.0040.00416.77
8.0.60.0030.00516.74
8.0.50.0040.00416.61
8.0.30.0140.00417.13
8.0.20.0100.01117.40
8.0.10.0080.00016.84
8.0.00.0110.00816.70
7.4.330.0000.00515.55
7.4.320.0000.00616.45
7.4.300.0040.00416.34
7.4.290.0000.00716.33
7.4.280.0070.00016.55
7.4.270.0030.00316.59
7.4.260.0070.00016.44
7.4.250.0030.00316.39
7.4.240.0030.00316.55
7.4.230.0040.00416.29
7.4.220.0030.00516.44
7.4.210.0070.00716.61
7.4.200.0030.00316.52
7.4.160.0120.00416.52
7.4.140.0110.00917.86
7.4.130.0120.00916.36
7.4.120.0090.00916.46
7.4.110.0040.01216.36
7.4.100.0080.00816.36
7.4.90.0070.01016.46
7.4.80.0090.00819.39
7.4.70.0060.01016.45
7.4.60.0140.00316.57
7.4.50.0000.01216.37
7.4.40.0060.01216.36
7.4.00.0060.00914.55
7.3.330.0000.00512.95
7.3.320.0000.00512.94
7.3.310.0040.00416.16
7.3.300.0000.00716.11
7.3.290.0040.00416.16
7.3.280.0140.00016.17
7.3.260.0140.00416.38
7.3.240.0140.00516.36
7.3.230.0100.01316.37
7.3.210.0120.00916.29
7.3.200.0200.00316.55
7.3.190.0120.00616.42
7.3.180.0060.00916.16
7.3.170.0100.00616.33
7.3.160.0070.01016.34
7.2.330.0090.01516.54
7.2.320.0070.01516.26
7.2.310.0100.01316.39
7.2.300.0120.00416.59
7.2.290.0070.01016.73
7.2.70.0210.00915.20
7.2.60.0150.01214.96
7.2.50.0220.00814.91
7.2.40.0190.00815.06
7.2.30.0630.00314.70
7.2.20.0210.00914.78
7.2.10.0130.01214.94
7.2.00.0160.00715.13
7.1.200.0030.01015.59
7.1.170.0170.01013.74
7.1.160.0130.01013.72
7.1.150.0140.01013.86
7.1.140.0140.00913.84
7.1.130.0120.01013.73
7.1.120.0230.00013.69
7.1.110.0180.00313.63
7.1.100.0130.01013.73
7.1.90.0080.01213.77
7.1.80.0210.00313.60
7.1.70.0100.00713.44
7.1.60.0270.01031.54
7.1.50.0420.01331.95
7.1.40.0160.02331.76
7.1.30.0340.01531.81
7.1.20.0300.01731.78
7.1.10.0140.00513.65
7.1.00.0090.01313.67

preferences:
38.33 ms | 401 KiB | 5 Q