3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode('{"Name":"Consultation", "ServiceId":"1024", "Price":".00"}'); $b = json_decode('{"StartTime": "9:15AM", "ServiceId": "1024"}'); $c = (object)array_merge((array)$a, (array)$b); var_dump($c); $a = json_decode('{"Name":"Consultation", "ServiceId":"1024", "Price":".00"}', true); $b = json_decode('{"StartTime": "9:15AM", "ServiceId": "1024"}', true); $c = array_merge($a, $b); var_dump($c);

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.3.70.0060.00918.30
8.3.60.0030.01016.34
8.3.50.0080.01117.35
8.3.40.0040.01118.45
8.3.30.0100.01018.51
8.3.20.0050.00320.34
8.3.10.0040.00423.48
8.3.00.0040.00423.51
8.2.190.0140.00716.61
8.2.180.0070.01416.63
8.2.170.0070.00722.96
8.2.160.0040.01119.16
8.2.150.0090.00025.66
8.2.140.0000.00824.66
8.2.130.0000.00822.25
8.2.120.0000.00826.35
8.2.110.0000.01120.93
8.2.100.0040.00817.72
8.2.90.0000.00817.50
8.2.80.0000.00817.97
8.2.70.0030.00517.80
8.2.60.0060.00318.22
8.2.50.0050.00318.10
8.2.40.0040.00420.54
8.2.30.0040.00419.12
8.2.20.0070.00017.88
8.2.10.0040.00418.01
8.2.00.0000.00718.01
8.1.280.0120.00325.92
8.1.270.0050.00223.88
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00422.00
8.1.230.0060.00619.16
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.01017.13
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0090.00018.57
8.1.160.0080.00018.88
8.1.150.0040.00420.61
8.1.140.0040.00417.64
8.1.130.0030.00317.34
8.1.120.0040.00417.38
8.1.110.0080.00017.43
8.1.100.0000.00817.46
8.1.90.0040.00417.36
8.1.80.0030.00917.45
8.1.70.0070.00017.46
8.1.60.0040.00417.57
8.1.50.0020.00517.48
8.1.40.0060.00317.41
8.1.30.0040.00417.57
8.1.20.0050.00317.64
8.1.10.0050.00217.46
8.1.00.0030.00517.38
8.0.300.0050.00319.70
8.0.290.0100.00016.75
8.0.280.0030.00318.30
8.0.270.0000.00717.11
8.0.260.0060.00316.76
8.0.250.0030.00616.85
8.0.240.0000.00716.88
8.0.230.0000.00716.85
8.0.220.0030.00316.74
8.0.210.0040.00416.85
8.0.200.0070.00016.91
8.0.190.0040.00416.96
8.0.180.0000.01016.87
8.0.170.0000.00816.86
8.0.160.0030.00316.88
8.0.150.0030.00716.66
8.0.140.0000.00816.66
8.0.130.0040.00413.25
8.0.120.0100.00016.81
8.0.110.0040.00416.89
8.0.100.0050.00316.63
8.0.90.0070.00016.87
8.0.80.0090.00616.90
8.0.70.0000.00716.87
8.0.60.0000.00716.90
8.0.50.0000.00716.90
8.0.30.0090.01117.01
8.0.20.0110.01217.40
8.0.10.0000.00717.06
8.0.00.0090.00916.53
7.4.330.0020.00216.86
7.4.320.0000.00616.50
7.4.300.0060.00016.65
7.4.290.0000.00716.52
7.4.280.0000.00816.60
7.4.270.0000.00716.50
7.4.260.0040.00416.61
7.4.250.0070.00016.60
7.4.240.0040.00416.37
7.4.230.0070.00016.32
7.4.220.0120.00616.56
7.4.210.0100.00716.62
7.4.200.0000.00716.70
7.4.150.0110.01117.40
7.4.140.0150.00717.86
7.4.130.0060.01916.32
7.4.120.0080.01116.49
7.4.110.0120.00616.41
7.4.100.0100.00716.47
7.4.90.0140.00416.50
7.4.80.0100.00719.39
7.4.70.0060.01316.43
7.4.60.0030.01216.45
7.4.50.0130.00016.69
7.4.40.0160.00316.46
7.4.30.0040.01216.47
7.4.00.0050.01214.91
7.3.330.0050.00012.98
7.3.320.0060.00013.03
7.3.310.0030.00316.21
7.3.300.0000.00716.22
7.3.290.0070.00016.23
7.3.280.0090.00816.28
7.3.270.0060.01217.40
7.3.260.0140.00716.31
7.3.250.0130.00816.41
7.3.240.0120.00816.38
7.3.230.0080.00816.30
7.3.210.0140.00316.35
7.3.200.0210.00016.44
7.3.190.0060.01116.58
7.3.180.0100.00716.30
7.3.170.0090.00616.64
7.3.160.0130.01016.36
7.3.120.0030.01314.82
7.3.110.0180.00014.96
7.3.100.0090.00614.71
7.3.90.0060.01014.84
7.3.80.0120.00314.66
7.3.70.0100.00714.59
7.3.60.0070.01114.69
7.3.50.0030.00614.86
7.3.40.0030.01314.82
7.3.30.0000.01514.73
7.3.20.0110.00316.54
7.3.10.0070.01016.42
7.3.00.0050.00516.57
7.2.330.0140.00316.44
7.2.320.0070.01716.35
7.2.310.0110.01416.44
7.2.300.0120.00616.69
7.2.290.0050.01316.57
7.2.250.0000.02014.77
7.2.240.0120.00614.90
7.2.230.0000.01514.99
7.2.220.0040.01114.77
7.2.210.0000.01214.68
7.2.200.0030.00614.80
7.2.190.0040.01514.62
7.2.180.0130.00314.86
7.2.170.0130.00014.99
7.2.60.0000.01416.67
7.1.330.0060.00915.69
7.1.320.0110.00615.72
7.1.310.0030.01015.79
7.1.300.0060.01015.55
7.1.290.0080.00415.75
7.1.280.0000.01415.54
7.1.270.0040.00815.41
7.1.260.0060.00615.77
7.1.200.0000.00915.80
7.1.110.0070.01017.99
7.1.100.0090.01218.28
7.1.90.0060.00918.39
7.1.80.0060.01218.17
7.1.70.0030.00916.86
7.1.60.0140.01135.00
7.1.50.0140.01134.51
7.1.40.0180.00734.55
7.1.30.0090.01534.37
7.1.20.0130.01334.44
7.1.10.0080.00416.45
7.1.00.0060.00916.63
7.0.250.0030.01417.52
7.0.240.0130.00717.89
7.0.230.0050.00917.63
7.0.220.0000.01518.08
7.0.210.0040.00716.67
7.0.200.0060.00616.76
7.0.190.0040.00816.41
7.0.180.0040.00816.45
7.0.170.0100.00316.16
7.0.160.0090.00316.14
7.0.150.0090.00316.20
7.0.140.0050.01116.33
7.0.130.0050.01016.35
7.0.120.0080.00616.72
7.0.110.0070.01316.45
7.0.100.0120.00816.35
7.0.90.0090.01216.27
7.0.80.0090.00616.43
7.0.70.0000.01416.06
7.0.60.0040.01416.04
7.0.50.0060.00916.23
7.0.40.0100.00316.41
7.0.30.0030.01316.49
7.0.20.0030.01216.55
7.0.10.0030.01216.31
7.0.00.0030.01616.55

preferences:
51.29 ms | 401 KiB | 5 Q