3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create an element // Some dummy data $requestid = "requestid"; $service = "service"; $date = "today"; $data =[ "Id" => $requestid, "Service" => $service, "Date" => $date ]; // Create a parent array $json = []; // Add the element to the array twice $json[] = $data; $json[] = $data; echo json_encode($json, JSON_PRETTY_PRINT);

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.10.0110.00716.61
8.5.00.0120.00920.05
8.4.150.0030.00014.05
8.4.140.0130.00817.64
8.4.130.0110.00917.72
8.4.120.0140.00620.37
8.4.110.0130.00722.53
8.4.100.0130.00417.84
8.4.90.0110.00620.51
8.4.80.0070.00217.98
8.4.70.0130.00917.82
8.4.60.0120.00918.45
8.4.50.0140.00317.92
8.4.40.0100.01019.10
8.4.30.0080.01120.64
8.4.20.0220.00018.73
8.4.10.0060.00317.76
8.3.280.0120.00720.17
8.3.270.0140.00616.35
8.3.260.0130.00616.67
8.3.250.0040.00418.81
8.3.240.0080.00816.41
8.3.230.0160.00316.80
8.3.220.0150.00218.73
8.3.210.0050.00216.54
8.3.200.0080.00116.69
8.3.190.0080.01117.17
8.3.180.0060.00316.48
8.3.170.0070.00718.82
8.3.160.0150.00418.74
8.3.150.0120.00619.20
8.3.140.0090.00916.70
8.3.130.0080.00018.31
8.3.120.0080.00020.59
8.3.110.0060.01020.94
8.3.100.0080.00816.80
8.3.90.0060.00326.77
8.3.80.0060.00619.36
8.3.70.0090.00618.38
8.3.60.0110.01116.63
8.3.50.0090.00918.23
8.3.40.0110.00418.84
8.3.30.0110.00418.84
8.3.20.0030.00624.18
8.3.10.0060.00324.66
8.3.00.0070.00326.16
8.2.290.0040.00518.69
8.2.280.0110.00518.33
8.2.270.0000.00816.76
8.2.260.0070.01018.80
8.2.250.0170.00318.36
8.2.240.0030.00618.93
8.2.230.0040.00422.58
8.2.220.0090.00024.06
8.2.210.0090.00926.77
8.2.200.0090.00018.88
8.2.190.0140.00416.75
8.2.180.0070.01125.92
8.2.170.0110.00718.94
8.2.160.0110.00422.96
8.2.150.0050.00225.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.13
8.2.110.0050.00520.24
8.2.100.0080.00417.84
8.2.90.0030.00619.25
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0040.00817.93
8.2.50.0080.00018.07
8.2.40.0030.00618.34
8.2.30.0070.00018.16
8.2.20.0060.00318.17
8.2.10.0000.00821.03
8.2.00.0030.00619.27
8.1.330.0060.01421.63
8.1.320.0140.00716.28
8.1.310.0080.00016.77
8.1.300.0110.00715.98
8.1.290.0030.00730.84
8.1.280.0090.00625.92
8.1.270.0100.01422.13
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00822.01
8.1.230.0040.00817.51
8.1.220.0090.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0030.00518.59
8.1.160.0000.00718.84
8.1.150.0030.00618.79
8.1.140.0040.00418.92
8.1.130.0030.00321.77
8.1.120.0060.00317.34
8.1.110.0040.00417.36
8.1.100.0040.00417.41
8.1.90.0050.00317.41
8.1.80.0000.00917.38
8.1.70.0030.00317.36
8.1.60.0020.01117.44
8.1.50.0080.00517.39
8.1.40.0110.00317.41
8.1.30.0040.00617.58
8.1.20.0080.00317.46
8.1.10.0030.00917.54
8.1.00.0040.00617.49
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0030.00318.38
8.0.270.0070.00018.05
8.0.260.0070.00018.57
8.0.250.0030.00317.01
8.0.240.0000.00816.93
8.0.230.0000.00716.90
8.0.220.0030.00316.81
8.0.210.0050.00316.74
8.0.200.0030.00316.85
8.0.190.0080.00316.86
8.0.180.0090.00116.75
8.0.170.0100.00316.82
8.0.160.0070.00416.75
8.0.150.0080.00316.71
8.0.140.0030.00516.80
8.0.130.0020.00615.03
8.0.120.0000.01016.77
8.0.110.0060.00316.79
8.0.100.0080.00216.75
8.0.90.0060.00516.71
8.0.80.0180.00616.79
8.0.70.0150.00616.79
8.0.60.0180.00716.78
8.0.50.0060.01316.82
8.0.30.0140.00616.84
8.0.20.0150.00616.90
8.0.10.0130.00816.97
8.0.00.0090.00516.92
7.4.330.0000.00516.73
7.4.320.0000.00616.43
7.4.300.0030.00316.52
7.4.290.0100.00216.34
7.4.280.0030.00716.40
7.4.270.0060.00416.45
7.4.260.0040.00614.80
7.4.250.0050.00716.55
7.4.240.0040.00516.43
7.4.230.0090.00016.46
7.4.220.0050.00516.51
7.4.210.0090.00516.57
7.4.200.0160.00716.50
7.4.190.0130.00716.46
7.4.180.0140.00616.52
7.4.160.0100.01016.52
7.4.150.0110.00916.48
7.4.140.0180.00516.38
7.4.130.0160.00416.52
7.4.120.0050.01116.45
7.4.110.0090.00716.40
7.4.100.0130.00616.58
7.4.90.0140.01016.52
7.4.80.0090.01116.52
7.4.70.0110.00616.37
7.4.60.0090.00916.47
7.4.50.0070.01016.41
7.4.40.0140.00516.36
7.4.30.0120.00516.39
7.4.20.0100.00616.52
7.4.10.0090.00916.39
7.4.00.0140.00416.43
7.3.330.0030.00516.15
7.3.320.0060.00414.60
7.3.310.0050.00616.30
7.3.300.0060.00416.16
7.3.290.0170.00216.17
7.3.280.0130.00616.22
7.3.270.0170.00516.17
7.3.260.0180.00416.13
7.3.250.0090.01316.31
7.3.240.0130.01016.26
7.3.230.0170.00716.25
7.3.220.0110.01216.22
7.3.210.0190.00716.22
7.3.200.0130.01116.19
7.3.190.0200.00116.18
7.3.180.0160.01016.23
7.3.170.0160.00516.13
7.3.160.0110.00916.23
7.3.150.0160.00616.16
7.3.140.0110.01016.14
7.3.130.0130.00916.16
7.3.120.0140.00716.13
7.3.110.0150.00716.10
7.3.100.0160.00516.15
7.3.90.0230.00216.41
7.3.80.0130.01016.26
7.3.70.0150.00616.35
7.3.60.0170.00516.46
7.3.50.0100.01216.45
7.3.40.0140.00816.51
7.3.30.0170.00416.50
7.3.20.0310.00317.32
7.3.10.0190.00117.29
7.3.00.0150.00817.16

preferences:
151.72 ms | 403 KiB | 5 Q