3v4l.org

run code in 300+ PHP versions simultaneously
<?php $master_array[] = (array)json_decode('{"results":[{"cat_id":2,"cat_name":"bicycle repairs"}]}', true); $master_array[] = (array)json_decode(null, true); $master_array[] = (array)json_decode('{"results":[{"cat_id":"4","cat_name":"plumber"},{"cat_id":"5","cat_name":"Electrician"},{"cat_id":"6","cat_name":"vet"}]}', true); var_export(array_merge(...array_column($master_array, 'results')));

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.0130.00516.71
8.5.00.0100.01219.86
8.4.150.0020.00014.05
8.4.140.0120.00917.61
8.4.130.0150.00518.88
8.4.120.0100.00223.86
8.4.110.0070.01117.94
8.4.100.0060.00317.97
8.4.90.0120.00920.49
8.4.80.0140.00518.73
8.4.70.0070.01018.79
8.4.60.0110.01120.34
8.4.50.0030.00523.86
8.4.40.0130.00619.35
8.4.30.0190.00018.48
8.4.20.0080.00020.85
8.4.10.0090.00019.57
8.3.280.0040.00718.38
8.3.270.0100.01116.86
8.3.260.0120.00716.69
8.3.250.0120.00819.04
8.3.240.0100.00917.02
8.3.230.0120.00816.84
8.3.220.0120.00818.84
8.3.210.0100.00916.75
8.3.200.0130.00616.64
8.3.190.0130.00519.25
8.3.180.0060.00318.65
8.3.170.0140.00419.04
8.3.160.0130.00618.40
8.3.150.0110.00418.75
8.3.140.0080.00017.36
8.3.130.0150.00418.80
8.3.120.0000.01018.88
8.3.110.0060.00320.94
8.3.100.0040.00418.49
8.3.90.0030.00526.77
8.3.80.0090.00016.63
8.3.70.0090.00616.63
8.3.60.0070.01118.53
8.3.50.0100.00518.28
8.3.40.0150.00018.70
8.3.30.0140.00018.79
8.3.20.0040.00421.90
8.3.10.0050.00318.94
8.3.00.0050.00321.86
8.2.290.0080.00716.58
8.2.280.0110.00818.53
8.2.270.0110.00718.91
8.2.260.0090.00616.54
8.2.250.0000.00816.78
8.2.240.0060.00317.18
8.2.230.0030.00622.58
8.2.220.0070.01124.06
8.2.210.0140.00426.77
8.2.200.0060.00318.41
8.2.190.0140.00416.63
8.2.180.0160.00025.92
8.2.170.0060.00918.86
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0110.00726.16
8.2.120.0030.00626.16
8.2.110.0090.00019.30
8.2.100.0110.00017.72
8.2.90.0050.00317.84
8.2.80.0000.00917.97
8.2.70.0040.00417.93
8.2.60.0090.00018.22
8.2.50.0060.00319.34
8.2.40.0040.00421.02
8.2.30.0040.00420.36
8.2.20.0030.00517.95
8.2.10.0050.00318.99
8.2.00.0030.00619.92
8.1.330.0100.00815.98
8.1.320.0090.01118.12
8.1.310.0100.00718.29
8.1.300.0090.00618.10
8.1.290.0080.00030.84
8.1.280.0110.00725.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0030.00622.42
8.1.230.0050.00520.97
8.1.220.0030.00617.79
8.1.210.0050.00318.77
8.1.200.0080.00017.35
8.1.190.0050.00517.23
8.1.180.0080.00018.10
8.1.170.0030.00618.46
8.1.160.0040.00418.91
8.1.150.0070.00018.89
8.1.140.0030.00320.14
8.1.130.0000.00822.02
8.1.120.0040.00417.42
8.1.110.0040.00417.43
8.1.100.0040.00417.28
8.1.90.0000.00917.35
8.1.80.0000.00817.43
8.1.70.0070.00417.46
8.1.60.0000.01017.57
8.1.50.0040.00417.52
8.1.40.0060.00317.56
8.1.30.0040.00417.55
8.1.20.0040.00417.54
8.1.10.0060.00317.48
8.1.00.0030.00617.38
8.0.300.0040.00419.86
8.0.290.0040.00416.63
8.0.280.0040.00418.30
8.0.270.0000.00717.07
8.0.260.0030.00318.39
8.0.250.0000.00716.95
8.0.240.0000.00616.86
8.0.230.0040.00416.81
8.0.220.0000.00716.83
8.0.210.0040.00416.83
8.0.200.0000.00716.83
8.0.190.0050.00316.94
8.0.180.0000.00716.79
8.0.170.0040.00416.85
8.0.160.0000.00716.73
8.0.150.0000.00716.66
8.0.140.0000.00816.79
8.0.130.0030.00313.34
8.0.120.0000.01016.81
8.0.110.0040.00416.77
8.0.100.0040.00416.63
8.0.90.0030.00516.83
8.0.80.0080.00816.84
8.0.70.0040.00416.73
8.0.60.0000.00816.69
8.0.50.0000.00816.89
8.0.30.0090.01116.91
8.0.20.0200.00717.26
8.0.10.0000.00816.97
8.0.00.0060.01216.66
7.4.330.0040.00015.55
7.4.320.0030.00316.56
7.4.300.0000.00716.63
7.4.290.0000.00716.50
7.4.280.0080.00016.59
7.4.270.0000.00816.56
7.4.260.0050.00316.60
7.4.250.0060.00316.59
7.4.240.0050.00216.54
7.4.230.0030.00516.39
7.4.220.0000.00816.44
7.4.210.0090.00916.49
7.4.200.0000.00716.64
7.4.160.0100.00516.40
7.4.140.0090.00817.86
7.4.130.0070.01116.54
7.4.120.0120.00616.49
7.4.110.0110.00616.37
7.4.100.0140.01016.27
7.4.90.0140.00416.32
7.4.80.0130.00319.39
7.4.70.0060.01216.37
7.4.60.0030.01316.49
7.4.50.0000.01816.54
7.4.40.0140.00916.38
7.4.00.0000.01615.00
7.3.330.0000.00512.95
7.3.320.0030.00313.05
7.3.310.0040.00416.25
7.3.300.0040.00416.24
7.3.290.0100.00316.31
7.3.280.0070.00916.17
7.3.260.0080.01016.35
7.3.240.0100.00916.29
7.3.230.0090.00616.32
7.3.210.0030.01716.44
7.3.200.0130.00716.47
7.3.190.0030.01316.42
7.3.180.0060.00916.23
7.3.170.0060.01316.15
7.3.160.0060.01216.47
7.3.50.0140.00814.75
7.3.40.0050.01014.71
7.3.30.0070.00614.64
7.3.20.0140.00314.72
7.3.10.0070.00714.66
7.3.00.0110.00414.64
7.2.330.0100.01016.64
7.2.320.0060.01216.55
7.2.310.0180.00316.37
7.2.300.0120.00316.52
7.2.290.0080.01416.48
7.2.180.0050.01115.02
7.2.170.0120.00714.80
7.2.160.0070.00514.88
7.2.150.0190.00615.18
7.2.140.0140.00515.01
7.2.130.0150.00714.76
7.2.120.0160.00415.04
7.2.110.0530.00615.05
7.2.100.0120.00415.06
7.2.90.0160.00415.01
7.2.80.0100.00515.03
7.2.70.0110.00415.03
7.2.60.0190.00314.77
7.2.50.0170.00515.10
7.2.40.0090.00715.08
7.2.30.0650.00614.95
7.2.20.0120.00414.88
7.2.10.0060.01015.11
7.2.00.0100.00715.04
7.1.280.0050.01513.93
7.1.270.0070.00713.94
7.1.260.0090.00613.80
7.1.250.0060.00813.71

preferences:
153.22 ms | 403 KiB | 5 Q