3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headers = array( "content-type" => "application/json", "accept" => "text/html", ); $h = array(); foreach ($headers as $key => $value) { $h[] = $key . ':' . $value; } print_r($h);

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.0100.00716.63
8.3.50.0070.00716.35
8.3.40.0140.00018.55
8.3.30.0150.00018.54
8.3.20.0080.00020.30
8.3.10.0000.00823.52
8.3.00.0080.00017.78
8.2.180.0120.00318.24
8.2.170.0110.00722.96
8.2.160.0070.00720.41
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00820.38
8.2.120.0060.00326.35
8.2.110.0000.01020.55
8.2.100.0060.00617.72
8.2.90.0050.00219.17
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0000.00720.27
8.2.30.0060.00321.16
8.2.20.0040.00418.06
8.2.10.0060.00318.07
8.2.00.0040.00418.11
8.1.280.0110.00425.92
8.1.270.0060.00323.61
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00723.77
8.1.230.0070.00420.90
8.1.220.0000.00817.78
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0050.00218.10
8.1.170.0030.00618.59
8.1.160.0040.00419.05
8.1.150.0030.00518.82
8.1.140.0000.00719.61
8.1.130.0040.00418.88
8.1.120.0040.00417.48
8.1.110.0070.00017.40
8.1.100.0050.00317.48
8.1.90.0000.00717.47
8.1.80.0030.00317.41
8.1.70.0070.00017.41
8.1.60.0000.00817.57
8.1.50.0000.00917.40
8.1.40.0060.00317.41
8.1.30.0040.00417.62
8.1.20.0000.00817.57
8.1.10.0060.00317.43
8.1.00.0070.00017.45
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00718.37
8.0.270.0110.00017.12
8.0.260.0000.00616.73
8.0.250.0070.00016.91
8.0.240.0040.00416.95
8.0.230.0090.00016.90
8.0.220.0000.00716.93
8.0.210.0000.00916.87
8.0.200.0060.00017.00
8.0.190.0000.00916.90
8.0.180.0000.00716.86
8.0.170.0000.00816.94
8.0.160.0100.00016.81
8.0.150.0030.00516.84
8.0.140.0020.00516.70
8.0.130.0000.00513.28
8.0.120.0000.00716.85
8.0.110.0000.00816.76
8.0.100.0040.00416.88
8.0.90.0080.00016.71
8.0.80.0030.01316.93
8.0.70.0040.00416.84
8.0.60.0000.00716.77
8.0.50.0000.00716.82
8.0.30.0070.01117.13
8.0.20.0180.01617.40
8.0.10.0030.00316.89
8.0.00.0070.01016.72
7.4.330.0050.00015.55
7.4.320.0050.00316.48
7.4.300.0030.00316.54
7.4.290.0030.00616.57
7.4.280.0030.00516.50
7.4.270.0020.00516.46
7.4.260.0000.00613.32
7.4.250.0070.00016.56
7.4.240.0000.00716.58
7.4.230.0070.00016.59
7.4.220.0140.00316.49
7.4.210.0070.00716.60
7.4.200.0070.00016.25
7.4.160.0100.01016.48
7.4.150.0090.01517.40
7.4.140.0120.00717.86
7.4.130.0080.01416.37
7.4.120.0070.01316.55
7.4.110.0030.01416.37
7.4.100.0140.01016.49
7.4.90.0130.00316.35
7.4.80.0210.00019.39
7.4.70.0130.00916.65
7.4.60.0040.01216.49
7.4.50.0030.00916.20
7.4.40.0080.00816.55
7.4.30.0060.00916.52
7.4.00.0100.00315.03
7.3.330.0030.00313.05
7.3.320.0050.00013.15
7.3.310.0030.00316.11
7.3.300.0000.00616.26
7.3.290.0060.01016.27
7.3.280.0090.00816.25
7.3.270.0030.01317.40
7.3.260.0070.01016.77
7.3.250.0130.00716.38
7.3.240.0110.00716.43
7.3.230.0070.01016.42
7.3.210.0070.01116.29
7.3.200.0060.00916.68
7.3.190.0070.01016.18
7.3.180.0130.00316.44
7.3.170.0080.00816.36
7.3.160.0100.00716.50
7.3.120.0080.00715.02
7.3.110.0040.00814.82
7.3.100.0040.00814.59
7.3.90.0000.01214.74
7.3.80.0000.01014.45
7.3.70.0030.01314.54
7.3.60.0030.01014.81
7.3.50.0030.00614.81
7.3.40.0030.01014.55
7.3.30.0030.01314.89
7.3.20.0110.00416.48
7.3.10.0100.00516.51
7.3.00.0080.00516.63
7.2.330.0040.01416.38
7.2.320.0120.00616.67
7.2.310.0130.00316.36
7.2.300.0120.00616.37
7.2.290.0130.00416.52
7.2.240.0070.00414.63
7.2.230.0030.01415.09
7.2.220.0090.00615.14
7.2.210.0060.00914.68
7.2.200.0060.00914.81
7.2.190.0070.00414.89
7.2.180.0000.01515.07
7.2.170.0060.00615.07
7.2.160.0030.00715.05
7.2.150.0060.00616.65
7.2.140.0040.01116.64
7.2.130.0100.00816.75
7.2.120.0090.00916.84
7.2.110.0130.00316.69
7.2.100.0090.00716.80
7.2.90.0090.00916.82
7.2.80.0040.00716.68
7.2.70.0080.00516.63
7.2.60.0020.01116.77
7.2.50.0070.00816.67
7.2.40.0050.00816.78
7.2.30.0060.00616.88
7.2.20.0090.00416.80
7.2.10.0030.01216.46
7.2.00.0040.00817.80
7.1.330.0040.00415.74
7.1.320.0070.00715.92
7.1.310.0030.01315.34
7.1.300.0040.01115.46
7.1.290.0000.01315.81
7.1.280.0080.00815.71
7.1.270.0070.00715.80
7.1.260.0060.00915.78
7.1.250.0060.01115.75
7.1.200.0000.01215.77
7.1.100.0070.00412.03
7.1.70.1570.01715.04
7.1.60.1570.00732.91
7.1.50.1500.01033.07
7.1.40.1630.01732.43
7.1.30.1600.01332.61
7.1.20.1500.01732.56
7.1.10.1430.01314.52
7.1.00.1270.01714.86
7.0.200.1570.00314.96
7.0.190.1470.00314.95
7.0.180.1430.01714.35
7.0.170.1470.01314.31
7.0.160.1400.01314.29
7.0.150.1630.01014.34
7.0.140.1570.01714.47
7.0.130.1400.01014.73
7.0.120.1630.00714.71
7.0.110.1670.01014.53
7.0.100.1600.00714.43
7.0.90.1700.01714.56
7.0.80.1570.01714.47
7.0.70.1430.01014.65
7.0.60.1330.01314.40
7.0.50.1570.01014.68
7.0.40.1430.01314.61
7.0.30.1570.01014.43
7.0.20.2100.01714.64
7.0.10.1530.01014.46
7.0.00.1500.01714.51

preferences:
38.77 ms | 400 KiB | 5 Q