3v4l.org

run code in 300+ PHP versions simultaneously
<?php $car = (object)[ 'general' => [ 'interior' => [ 'seats' => 'destroyed' ] ], 'other' => [ 'exterior' => [ 'hood' => 'dull' ] ] ]; $exteriorProperties = [ 'hood' => 'shiny', 'windows' => 'dirty' ]; var_export( json_decode( json_encode( array_replace_recursive( (array)$car, ['other' => ['exterior' => $exteriorProperties]] ) ) ) );

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.60.0110.01116.88
8.3.50.0040.01118.04
8.3.40.0120.00918.74
8.3.30.0070.01118.34
8.3.20.0040.00423.66
8.3.10.0000.00921.85
8.3.00.0040.00420.54
8.2.180.0120.00318.41
8.2.170.0070.00722.96
8.2.160.0090.00621.09
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.01126.16
8.2.120.0070.00726.16
8.2.110.0070.00322.11
8.2.100.0100.00317.84
8.2.90.0000.00917.88
8.2.80.0040.00418.73
8.2.70.0050.00317.93
8.2.60.0050.00318.16
8.2.50.0050.00818.10
8.2.40.0060.00321.11
8.2.30.0030.00619.30
8.2.20.0000.00818.08
8.2.10.0000.00718.98
8.2.00.0040.00419.30
8.1.280.0120.00325.92
8.1.270.0080.00022.21
8.1.260.0150.00026.35
8.1.250.0140.00328.09
8.1.240.0100.00021.06
8.1.230.0110.00017.71
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0040.00418.72
8.1.160.0080.00018.88
8.1.150.0030.00618.62
8.1.140.0080.00418.66
8.1.130.0000.00720.08
8.1.120.0000.00717.33
8.1.110.0040.00417.41
8.1.100.0040.00417.35
8.1.90.0000.00917.35
8.1.80.0000.00717.38
8.1.70.0030.00317.38
8.1.60.0080.00017.54
8.1.50.0030.00517.57
8.1.40.0040.00417.54
8.1.30.0000.00817.48
8.1.20.0000.00817.64
8.1.10.0040.00417.55
8.1.00.0000.00717.41
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0000.00818.37
8.0.270.0030.00318.05
8.0.260.0000.00620.03
8.0.250.0000.00816.96
8.0.240.0040.00417.02
8.0.230.0000.00716.97
8.0.220.0040.00416.91
8.0.210.0000.00716.82
8.0.200.0070.00016.93
8.0.190.0030.00316.95
8.0.180.0000.00816.82
8.0.170.0030.00716.84
8.0.160.0000.00716.92
8.0.150.0000.00716.79
8.0.140.0000.00716.82
8.0.130.0000.00513.32
8.0.120.0070.00016.81
8.0.110.0040.00416.78
8.0.100.0040.00416.72
8.0.90.0040.00416.95
8.0.80.0050.01016.81
8.0.70.0040.00416.74
8.0.60.0040.00416.92
8.0.50.0020.00516.72
8.0.30.0100.00917.05
8.0.20.0040.01417.20
8.0.10.0030.00516.93
8.0.00.0130.00516.62
7.4.330.0000.00415.55
7.4.320.0040.00416.54
7.4.300.0000.00616.50
7.4.290.0030.00316.49
7.4.280.0070.00016.59
7.4.270.0070.00016.46
7.4.260.0050.00013.32
7.4.250.0070.00016.47
7.4.240.0060.00216.53
7.4.230.0000.00816.71
7.4.220.0010.00616.50
7.4.210.0030.01116.52
7.4.200.0030.00316.49
7.4.130.0110.00616.40
7.4.120.0140.00316.38
7.4.110.0090.01316.44
7.4.100.0150.00416.52
7.4.90.0140.02416.41
7.4.80.0060.01117.93
7.4.70.0040.01616.51
7.4.60.0120.01116.51
7.4.50.0090.00616.50
7.4.40.0090.01116.53
7.4.30.0150.00616.31
7.4.20.0150.02516.46
7.4.10.0100.01115.73
7.4.00.0050.01415.41
7.3.330.0050.00216.23
7.3.320.0000.00613.21
7.3.310.0030.00316.45
7.3.300.0030.00316.41
7.3.290.0060.00916.34
7.3.280.0060.00916.34
7.3.260.0110.00916.51
7.3.250.0130.00616.54
7.3.240.0120.00816.41
7.3.230.0170.00516.31
7.3.220.0080.01416.44
7.3.210.0130.00816.34
7.3.200.0140.00616.32
7.3.190.0030.01316.50
7.3.180.0080.00816.41
7.3.170.0050.01216.53
7.3.160.0090.00916.39
7.3.150.0130.01016.50
7.3.140.0100.01316.53
7.3.130.0090.01115.66
7.3.120.0090.01015.52
7.3.110.0090.00815.24
7.3.100.0080.00815.23
7.3.90.0080.00815.09
7.3.80.0080.01115.23
7.3.70.0090.00615.18
7.3.60.0040.01215.14
7.3.50.0070.00715.29
7.3.40.0060.01015.23
7.3.30.0080.00715.13
7.3.20.0110.00816.11
7.3.10.0100.00816.06
7.3.00.0120.00516.17
7.2.340.0120.00916.50
7.2.330.0120.00916.48
7.2.320.0080.01316.51
7.2.310.0040.01516.50
7.2.300.0130.00716.28
7.2.290.0140.00416.33
7.2.280.0130.01316.23
7.2.270.0030.01716.09
7.2.260.0100.01215.66
7.2.250.0110.00715.43
7.2.240.0090.01015.32
7.2.230.0050.01015.28
7.2.220.0060.00715.35
7.2.210.0070.01215.20
7.2.200.0060.01115.19
7.2.190.0050.01115.27
7.2.180.0090.00915.26
7.2.170.0090.00815.21
7.2.160.0070.01015.20
7.2.150.0080.01116.19
7.2.140.0090.00816.14
7.2.130.0090.00916.11
7.2.120.0070.00816.26
7.2.110.0080.00716.26
7.2.100.0070.00916.27
7.2.90.0070.01116.24
7.2.80.0040.01116.13
7.2.70.0080.00916.25
7.2.60.0080.01016.33
7.2.50.0090.00816.13
7.2.40.0090.00716.20
7.2.30.0080.00716.21
7.2.20.0080.00916.21
7.2.10.0070.00816.27
7.2.00.0060.00916.11
7.1.330.0060.01115.22
7.1.320.0100.00915.08
7.1.310.0060.00915.33
7.1.300.0100.00715.21
7.1.290.0100.00815.24
7.1.280.0080.00715.12
7.1.270.0100.00715.20
7.1.260.0080.00915.26
7.1.250.0070.00815.28
7.1.240.0060.00815.63
7.1.230.0040.00815.66
7.1.220.0090.00815.61
7.1.210.0100.01215.66
7.1.200.0070.00715.61
7.1.190.0090.00915.61
7.1.180.0030.00915.68
7.1.170.0070.00715.52
7.1.160.0070.00815.43
7.1.150.0100.01015.72
7.1.140.0090.00815.55
7.1.130.0110.01615.60
7.1.120.0080.00815.69
7.1.110.0080.00815.79
7.1.100.0100.00615.68
7.1.90.0080.00715.65
7.1.80.0120.01015.69
7.1.70.0100.00715.73
7.1.60.0090.00815.60
7.1.50.0080.01015.67
7.1.40.0120.00715.71
7.1.30.0080.00815.72
7.1.20.0080.00715.60
7.1.10.0050.01415.70
7.1.00.0080.01215.71

preferences:
55.09 ms | 400 KiB | 5 Q