3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public string $Content–Type = "world"; } echo json_encode(new Test), PHP_EOL, json_encode(["Content-Type" => "world"]);

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.0100.01117.49
8.4.130.0020.00617.44
8.4.120.0080.00520.74
8.4.110.0110.00818.95
8.4.100.0150.00617.86
8.4.90.0110.00717.44
8.4.80.0110.00821.15
8.4.70.0080.01317.61
8.4.60.0150.00519.16
8.4.50.0150.00517.69
8.4.40.0100.01017.55
8.4.30.0110.00420.55
8.4.20.0100.01019.71
8.4.10.0040.00419.16
8.3.270.0120.00716.57
8.3.260.0090.01116.49
8.3.250.0140.00418.96
8.3.240.0060.00416.57
8.3.230.0110.01016.54
8.3.220.0090.00816.92
8.3.210.0110.00716.61
8.3.200.0060.00916.60
8.3.190.0060.00216.59
8.3.180.0070.01018.29
8.3.170.0030.01517.17
8.3.160.0110.00718.26
8.3.150.0160.00316.58
8.3.140.0060.00318.11
8.3.130.0040.00418.25
8.3.120.0050.00320.54
8.3.110.0400.00022.58
8.3.100.0380.00822.58
8.3.90.0350.00722.58
8.3.80.0340.01122.58
8.3.70.0330.01622.58
8.3.60.0460.00322.58
8.3.50.0420.00822.58
8.3.40.0320.00822.58
8.3.30.0330.00722.58
8.3.20.0370.00622.58
8.3.10.0340.01022.58
8.3.00.0210.00622.58
8.2.290.0140.00420.22
8.2.280.0090.01016.50
8.2.270.0190.00017.05
8.2.260.0070.00316.56
8.2.250.0060.00316.43
8.2.240.0050.00517.14
8.2.230.0250.00822.58
8.2.220.0220.01022.58
8.2.210.0230.01022.58
8.2.200.0330.00722.58
8.2.190.0330.00822.58
8.2.180.0290.01122.58
8.2.170.0360.01122.58
8.2.160.0300.00722.58
8.2.150.0340.00022.58
8.2.140.0130.00722.58
8.2.130.0280.00022.58
8.2.120.0220.00822.58
8.2.110.0340.00922.58
8.2.100.0300.01222.58
8.2.90.0280.01122.58
8.2.80.0410.00322.58
8.2.70.0360.00622.58
8.2.60.0290.01322.58
8.2.50.0320.01122.58
8.2.40.0260.01622.58
8.2.30.0410.00022.58
8.2.20.0400.00022.58
8.2.10.0280.01122.58
8.2.00.0290.01022.58
8.1.330.0120.00818.29
8.1.320.0110.00817.87
8.1.310.0080.00016.25
8.1.300.0090.00017.74
8.1.290.0320.01022.58
8.1.280.0380.00322.58
8.1.270.0300.00722.58
8.1.260.0380.00622.58
8.1.250.0290.01022.58
8.1.240.0290.00622.58
8.1.230.0260.01122.58
8.1.220.0320.01222.58
8.1.210.0350.00422.58
8.1.200.0220.01322.58
8.1.190.0330.00322.58
8.1.180.0290.01022.58
8.1.170.0250.01322.58
8.1.160.0350.00822.58
8.1.150.0280.01022.58
8.1.140.0330.00522.58
8.1.130.0340.00422.58
8.1.120.0310.00822.58
8.1.110.0220.00922.58
8.1.100.0180.00022.58
8.1.90.0200.00722.58
8.1.80.0310.00722.58
8.1.70.0350.01122.58
8.1.60.0380.00422.58
8.1.50.0300.01322.58
8.1.40.0350.00922.58
8.1.30.0350.00922.58
8.1.20.0360.01122.58
8.1.10.0370.00422.58
8.1.00.0260.01022.58

preferences:
54.67 ms | 403 KiB | 5 Q