3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php // Set a cookie named "abc" with value "abc" that expires in 1 hour setcookie("abc", "abc", time() + 3600); // Check if the cookie 'abc' is set and display message accordingly if (isset($_COOKIE['abc'])) { echo "Hello, visiting again! Cookie value: " . $_COOKIE['abc']; } else { echo "Your first visit."; } ?> </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.4.70.0350.01118.11
8.4.60.0340.00817.41
8.4.50.0380.00717.52
8.4.40.0410.01017.70
8.4.30.0410.00817.50
8.4.20.0360.01117.94
8.4.10.0400.00917.88
8.3.210.0360.00816.84
8.3.200.0390.00616.96
8.3.190.0330.01316.70
8.3.180.0350.01016.54
8.3.170.0440.01016.50
8.3.160.0360.01116.39
8.3.150.0400.00716.87
8.3.140.0390.00716.56
8.3.130.0320.00916.38
8.3.120.0330.00916.51
8.3.110.0300.01216.43
8.3.100.0350.01216.44
8.3.90.0400.00916.62
8.3.80.0360.00916.58
8.3.70.0260.00516.36
8.3.60.0350.00416.32
8.3.50.0440.00816.63
8.3.40.0400.00517.74
8.3.30.0250.00617.67
8.3.20.0180.00417.64
8.3.10.0270.01317.45
8.3.00.0160.00817.77
8.2.280.0280.01116.50
8.2.270.0350.00716.63
8.2.260.0270.01216.33
8.2.250.0360.00416.80
8.2.240.0310.00916.68
8.2.230.0270.01216.64
8.2.220.0340.00816.63
8.2.210.0270.00816.70
8.2.200.0300.00916.68
8.2.190.0280.00716.38
8.2.180.0260.00916.45
8.2.170.0280.01017.59
8.2.160.0350.00617.68
8.2.150.0290.00717.65
8.2.140.0180.00717.48
8.2.130.0340.00717.36
8.2.120.0370.00717.40
8.2.110.0330.01117.49
8.2.100.0360.00717.36
8.2.90.0360.00617.73
8.2.80.0330.00817.25
8.2.70.0320.00917.47
8.2.60.0340.00517.34
8.2.50.0400.00817.48
8.2.40.0370.00717.61
8.2.30.0340.00817.60
8.2.20.0330.00717.51
8.2.10.0320.00717.36
8.2.00.0310.00817.51

preferences:
28.91 ms | 406 KiB | 6 Q