3v4l.org

run code in 500+ PHP versions simultaneously
<?php $accountdata = array( array("name" => "test1", "email" => "test1@test.com"), array("name" => "test2", "email" => "test2@test.com"), array("name" => "test3", "email" => "test3@test.com"), array("name" => "test4", "email" => "test4@test.com"), ); foreach ($accountdata as $row) { $data[$row["email"]] = [ 'name' => $row["name"], 'email' => $row["email"] ]; } echo json_encode($data, JSON_UNESCAPED_UNICODE);

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.5.70.0090.00816.77
8.5.60.0110.00716.90
8.5.50.0100.00716.84
8.5.30.0120.00619.25
8.5.20.0110.00619.64
8.5.10.0120.00720.27
8.5.00.0150.00819.76
8.4.180.0100.01219.76
8.4.170.0100.01023.99
8.4.160.0160.00623.00
8.4.150.0070.00516.88
8.4.140.0120.00917.40
8.4.130.0050.00417.52
8.4.120.0050.00322.29
8.4.110.0080.00722.50
8.4.100.0060.00318.64
8.4.90.0090.01118.63
8.4.80.0130.00618.91
8.4.70.0060.00317.81
8.4.60.0110.01018.74
8.4.50.0110.01218.87
8.4.40.0130.00619.40
8.4.30.0030.00520.53
8.4.20.0170.00318.96
8.4.10.0030.00623.93
8.3.300.0130.00920.72
8.3.290.0100.01020.69
8.3.280.0110.00918.38
8.3.270.0070.01416.77
8.3.260.0040.00516.81
8.3.250.0060.00818.93
8.3.240.0100.00820.86
8.3.230.0120.00716.50
8.3.220.0090.00818.88
8.3.210.0110.00818.46
8.3.200.0040.00516.62
8.3.190.0110.00817.29
8.3.180.0080.00316.72
8.3.170.0110.00717.25
8.3.160.0120.00616.54
8.3.150.0090.00616.62
8.3.140.0090.00017.41
8.3.130.0040.00418.61
8.3.120.0090.00618.91
8.3.110.0060.00320.94
8.3.100.0040.00724.06
8.3.90.0080.00026.77
8.3.80.0060.00316.75
8.3.70.0120.00316.58
8.3.60.0140.00418.43
8.3.50.0070.00720.35
8.3.40.0110.00420.04
8.3.30.0110.00418.67
8.3.20.0000.00824.18
8.3.10.0050.00324.66
8.3.00.0060.00326.16
8.2.300.0110.00918.00
8.2.290.0090.00620.63
8.2.280.0100.00818.55
8.2.270.0190.00017.08
8.2.260.0050.00316.82
8.2.250.0060.00320.45
8.2.240.0070.01118.86
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0090.00026.77
8.2.200.0030.00616.63
8.2.190.0120.00916.58
8.2.180.0150.00025.92
8.2.170.0130.00318.95
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.89
8.2.110.0100.00022.07
8.2.100.0110.00017.91
8.2.90.0040.00420.42
8.2.80.0110.00017.50
8.2.70.0030.00617.49
8.2.60.0030.00617.93
8.2.50.0050.00318.07
8.2.40.0000.01118.22
8.2.30.0050.00318.14
8.2.20.0030.00620.73
8.2.10.0020.00518.19
8.2.00.0020.00519.38
8.1.340.0130.00817.62
8.1.330.0120.00921.74
8.1.320.0100.00915.97
8.1.310.0060.00318.23
8.1.300.0040.01518.59
8.1.290.0030.00730.84
8.1.280.0070.00725.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.54
8.1.230.0040.00722.75
8.1.220.0040.00417.74
8.1.210.0080.00318.97
8.1.200.0060.00317.35
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0050.00318.52
8.1.160.0070.00018.77
8.1.150.0040.00418.60
8.1.140.0040.00417.36
8.1.130.0100.00517.46
8.1.120.0170.00017.42
8.1.110.0120.00417.52
8.1.100.0140.00317.45
8.1.90.0110.00517.47
8.1.80.0130.00417.52
8.1.70.0180.00017.40
8.1.60.0130.00817.65
8.1.50.0190.00017.58
8.1.40.0120.00617.69
8.1.30.0190.00017.57
8.1.20.0140.00517.62
8.1.10.0150.00317.59
8.1.00.0140.00317.63
8.0.300.0040.00419.98
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0000.00717.26
8.0.260.0110.00416.95
8.0.250.0080.00816.95
8.0.240.0130.00216.95
8.0.230.0140.00516.95
8.0.220.0140.00716.95
8.0.210.0090.00616.95
8.0.200.0140.00016.95
8.0.190.0130.00316.95
8.0.180.0110.00416.95
8.0.170.0140.00016.95
8.0.160.0060.00916.95
8.0.150.0070.00716.95
8.0.140.0100.00316.95
8.0.130.0080.00816.95
8.0.120.0120.00316.95
8.0.110.0100.00516.95
8.0.100.0130.00316.95
8.0.90.0090.00616.95
8.0.80.0110.00416.95
8.0.70.0050.00917.22
8.0.60.0070.00716.95
8.0.50.0140.00216.95
8.0.30.0150.00016.95
8.0.20.0060.00916.95
8.0.10.0100.00516.95

preferences:
56.4 ms | 1152 KiB | 5 Q