3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); http_response_code(200); echo 'hola'. PHP_EOL; header('hola: xxx'); var_dump( headers_list(), headers_sent(), http_response_code(), setcookie('hola') );

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.140.0120.00917.59
8.4.130.0110.00918.01
8.4.120.0110.00922.39
8.4.110.0100.01019.49
8.4.100.0040.00722.50
8.4.90.0120.00818.61
8.4.80.0170.00319.58
8.4.70.0100.01017.96
8.4.60.0080.01219.05
8.4.50.0110.00518.59
8.4.40.0170.00317.59
8.4.30.0170.00320.38
8.4.20.0100.01017.91
8.4.10.0160.00319.58
8.3.260.0110.00816.21
8.3.250.0030.00618.63
8.3.240.0100.00816.72
8.3.230.0140.00616.41
8.3.220.0110.00517.29
8.3.210.0120.00716.68
8.3.200.0070.00216.51
8.3.190.0110.00717.10
8.3.180.0070.00216.50
8.3.170.0100.00718.66
8.3.160.0110.00718.44
8.3.150.0040.01420.56
8.3.140.0040.00418.97
8.3.130.0040.00418.18
8.3.120.0080.00318.81
8.3.110.0060.00320.94
8.3.100.0090.00024.06
8.3.90.0100.01026.77
8.3.80.0060.00318.31
8.3.70.0100.00716.63
8.3.60.0140.00718.07
8.3.50.0060.01218.40
8.3.40.0120.00321.95
8.3.30.0100.01018.88
8.3.20.0090.00924.18
8.3.10.0090.00924.66
8.3.00.0040.01126.16
8.2.290.0120.00620.39
8.2.280.0110.00718.18
8.2.270.0070.01417.01
8.2.260.0080.00018.66
8.2.250.0050.00316.47
8.2.240.0040.01518.86
8.2.230.0030.01222.58
8.2.220.0070.00737.54
8.2.210.0030.00526.77
8.2.200.0060.00316.50
8.2.190.0040.01116.58
8.2.180.0140.00018.25
8.2.170.0160.00318.82
8.2.160.0070.00722.96
8.2.150.0100.01025.66
8.2.140.0070.00024.66
8.2.130.0070.00726.16
8.2.120.0040.01119.64
8.2.110.0070.00322.24
8.2.100.0300.00018.44
8.2.90.0240.00518.44
8.2.80.0260.00318.44
8.2.70.0210.01018.44
8.2.60.0320.00018.44
8.2.50.0270.00318.44
8.2.40.0220.00718.44
8.2.30.0200.00718.44
8.2.20.0320.00018.44
8.2.10.0250.00418.44
8.2.00.0220.00418.44
8.1.330.0130.00521.88
8.1.320.0080.00618.09
8.1.310.0150.00316.59
8.1.300.0040.01418.27
8.1.290.0030.00630.84
8.1.280.0120.00325.92
8.1.270.0040.00424.66
8.1.260.0030.00526.35
8.1.250.0140.00728.09
8.1.240.0060.00323.80
8.1.230.0170.00918.44
8.1.220.0160.00718.44
8.1.210.0200.00718.44
8.1.200.0190.00718.44
8.1.190.0100.00318.44
8.1.180.0210.00418.44
8.1.170.0230.00718.44
8.1.160.0250.00318.44
8.1.150.0230.00418.44
8.1.140.0200.00618.44
8.1.130.0260.00018.44
8.1.120.0090.01818.44
8.1.110.0200.00718.44
8.1.100.0220.00518.44
8.1.90.0240.00318.44
8.1.80.0200.00818.44
8.1.70.0240.00718.44
8.1.60.0170.01118.44
8.1.50.0290.00018.44
8.1.40.0210.00318.44
8.1.30.0150.01118.44
8.1.20.0210.00318.44
8.1.10.0250.00318.44
8.1.00.0220.00418.44
8.0.300.0130.01018.44
8.0.290.0240.00318.44
8.0.280.0240.00318.44
8.0.270.0190.01018.44
8.0.260.0280.00318.44
8.0.250.0230.00418.44
8.0.240.0200.00818.44
8.0.230.0240.00318.44
8.0.220.0260.00418.44
8.0.210.0160.01318.44
8.0.200.0190.00818.44
8.0.190.0200.00718.44
8.0.180.0250.00318.44
8.0.170.0240.00318.44
8.0.160.0240.00418.44
8.0.150.0220.00218.44
8.0.140.0240.00018.44
8.0.130.0160.00718.44
8.0.120.0170.01118.44
8.0.110.0230.00318.44
8.0.100.0160.01118.44
8.0.90.0200.00718.44
8.0.80.0180.00718.44
8.0.70.0250.00318.44
8.0.60.0210.00618.44
8.0.50.0280.00418.44
8.0.30.0270.00418.44
8.0.20.0300.00018.44
8.0.10.0190.00718.44

preferences:
35.26 ms | 403 KiB | 5 Q