3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj_array=(object)[ ['label'=>'1509521006','value'=>'12.324711'], ['label'=>'1509531448','value'=>'12.700929'] ]; $your_json=json_encode($obj_array); // now convert to index the subarrays... echo json_encode(array_map('array_values',json_decode($your_json,true))); //var_export(json_decode($json,true));

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.120.0050.00322.05
8.4.110.0040.00522.41
8.4.100.0130.00817.92
8.4.90.0120.00918.91
8.4.80.0110.00920.32
8.4.70.0090.00717.99
8.4.60.0120.00918.44
8.4.50.0150.00519.41
8.4.40.0070.01317.66
8.4.30.0080.00017.45
8.4.20.0060.01022.27
8.4.10.0040.00417.63
8.3.250.0070.00418.91
8.3.240.0060.00416.54
8.3.230.0120.00716.71
8.3.220.0070.00818.91
8.3.210.0060.00216.74
8.3.200.0070.00216.54
8.3.190.0130.00516.86
8.3.180.0110.00716.67
8.3.170.0140.00320.64
8.3.160.0100.00717.11
8.3.150.0030.01616.90
8.3.140.0090.00917.30
8.3.130.0080.00016.66
8.3.120.0040.00420.72
8.3.110.0040.00420.94
8.3.100.0160.00018.59
8.3.90.0040.00418.24
8.3.80.0030.00618.30
8.3.70.0000.02218.52
8.3.60.0120.00918.20
8.3.50.0120.00316.46
8.3.40.0090.00618.85
8.3.30.0100.00318.68
8.3.20.0040.00420.35
8.3.10.0050.00323.35
8.3.00.0060.00319.55
8.2.290.0110.00820.13
8.2.280.0090.00418.40
8.2.270.0180.00018.84
8.2.260.0040.00418.38
8.2.250.0090.00018.29
8.2.240.0030.00617.23
8.2.230.0060.00322.58
8.2.220.0080.00424.06
8.2.210.0080.00026.77
8.2.200.0000.00916.75
8.2.190.0070.00716.63
8.2.180.0060.01216.60
8.2.170.0150.00322.96
8.2.160.0070.00720.37
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0060.00322.28
8.2.120.0070.00026.35
8.2.110.0040.00420.52
8.2.100.0090.00317.91
8.2.90.0080.00017.76
8.2.80.0070.00020.36
8.2.70.0000.00817.93
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0090.00020.66
8.2.30.0040.00419.26
8.2.20.0040.00417.97
8.2.10.0060.00318.10
8.2.00.0040.00418.04
8.1.330.0110.00621.83
8.1.320.0090.00915.96
8.1.310.0100.00716.57
8.1.300.0130.00618.59
8.1.290.0050.00518.88
8.1.280.0070.00725.92
8.1.270.0030.00620.43
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00922.47
8.1.230.0000.01020.98
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.13
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0040.00418.50
8.1.160.0050.00218.75
8.1.150.0080.00020.23
8.1.140.0030.00317.55
8.1.130.0030.00319.08
8.1.120.0000.00717.39
8.1.110.0000.00717.43
8.1.100.0030.00517.39
8.1.90.0000.00817.28
8.1.80.0030.00517.42
8.1.70.0060.00317.43
8.1.60.0040.00417.55
8.1.50.0000.00817.49
8.1.40.0030.00617.43
8.1.30.0030.00917.48
8.1.20.0030.00517.43
8.1.10.0000.00817.40
8.1.00.0000.00917.46
8.0.300.0050.00221.89
8.0.290.0020.00516.75
8.0.280.0030.00318.38
8.0.270.0000.00717.18
8.0.260.0000.00716.91
8.0.250.0060.00017.00
8.0.240.0050.00317.03
8.0.230.0030.00717.02
8.0.220.0030.00316.91
8.0.210.0030.00316.93
8.0.200.0040.00416.89
8.0.190.0000.00716.95
8.0.180.0040.00416.89
8.0.170.0000.00916.80
8.0.160.0070.00016.95
8.0.150.0000.00716.93
8.0.140.0000.00816.83
8.0.130.0000.00713.21
8.0.120.0060.00316.82
8.0.110.0000.00816.95
8.0.100.0040.00416.79
8.0.90.0040.00416.70
8.0.80.0090.00916.82
8.0.70.0040.00416.84
8.0.60.0030.00616.96
8.0.50.0000.00816.95
8.0.30.0080.01017.11
8.0.20.0110.00917.40
8.0.10.0080.00016.99
8.0.00.0100.00716.79
7.4.330.0030.00315.55
7.4.320.0000.00716.52
7.4.300.0000.00816.54
7.4.290.0000.00716.53
7.4.280.0030.00616.40
7.4.270.0000.00716.45
7.4.260.0030.00316.48
7.4.250.0070.00016.55
7.4.240.0070.00016.50
7.4.230.0040.00416.52
7.4.220.0070.00016.54
7.4.210.0040.01516.64
7.4.200.0070.00016.52
7.4.160.0040.01116.37
7.4.150.0150.01017.40
7.4.140.0100.00817.86
7.4.130.0040.01516.34
7.4.120.0090.00816.50
7.4.110.0070.01016.41
7.4.100.0170.00716.35
7.4.90.0120.00916.46
7.4.80.0190.00319.39
7.4.70.0090.00916.62
7.4.60.0100.00716.36
7.4.50.0000.01016.27
7.4.40.0130.01016.24
7.4.00.0100.00314.90
7.3.330.0050.00013.12
7.3.320.0060.00013.11
7.3.310.0070.00016.11
7.3.300.0000.00716.22
7.3.290.0070.00816.17
7.3.280.0130.01016.21
7.3.270.0070.01117.40
7.3.260.0110.00816.29
7.3.240.0070.00916.32
7.3.230.0060.01216.30
7.3.210.0160.00016.30
7.3.200.0120.00616.25
7.3.190.0000.01616.42
7.3.180.0030.01416.37
7.3.170.0060.01016.36
7.3.160.0060.01016.58
7.2.330.0150.00816.54
7.2.320.0060.01616.74
7.2.310.0060.01016.64
7.2.300.0100.00716.46
7.2.290.0000.01716.69
7.2.60.0050.00516.76
7.2.20.0140.01218.02
7.2.10.0100.01517.89
7.2.00.0160.01217.86
7.1.200.0090.00315.80
7.1.140.0100.00916.79
7.1.130.0130.01016.92
7.1.120.0120.00816.66
7.1.110.0600.00816.35
7.1.100.0080.01616.20
7.1.90.0060.01216.11
7.1.80.0110.01116.25
7.1.70.0060.01115.18
7.1.60.0320.01732.97
7.1.50.0310.01832.94
7.1.40.0350.01732.32
7.1.30.0360.01532.54
7.1.20.0340.01532.83
7.1.10.0110.01114.78
7.1.00.0090.01215.00

preferences:
27.7 ms | 403 KiB | 5 Q