3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array('data_class' => 'foobar', 'required' => true, 'attr' => array('class' => 'custom', 'placeholder' => 'custom bar')); $typeGuessOptions = array('data_class' => 'foo', 'multiple' => true, 'attr' => array('placeholder' => 'bar', 'maxlength' => 10)); var_dump( array_replace_recursive($typeGuessOptions, $options) );

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.0080.00816.38
8.3.50.0070.00718.26
8.3.40.0120.00318.62
8.3.30.0150.00018.65
8.3.20.0040.00421.91
8.3.10.0050.00323.65
8.3.00.0050.00319.55
8.2.180.0110.00716.50
8.2.170.0100.00722.96
8.2.160.0110.00419.46
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00422.29
8.2.120.0000.00826.35
8.2.110.0040.00422.20
8.2.100.0030.00817.78
8.2.90.0080.00019.16
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0070.00017.80
8.2.50.0040.00418.10
8.2.40.0000.00820.57
8.2.30.0030.00619.25
8.2.20.0040.00417.92
8.2.10.0050.00318.00
8.2.00.0000.00717.86
8.1.280.0070.00725.92
8.1.270.0110.00022.06
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0060.00323.92
8.1.230.0070.00422.05
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0100.00017.23
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0000.00918.52
8.1.160.0000.00818.74
8.1.150.0040.00418.80
8.1.140.0080.00019.54
8.1.130.0070.00018.87
8.1.120.0030.00417.30
8.1.110.0000.00717.45
8.1.100.0040.00417.40
8.1.90.0030.00517.28
8.1.80.0000.00717.28
8.1.70.0000.00717.41
8.1.60.0000.01017.38
8.1.50.0080.00017.35
8.1.40.0040.00417.46
8.1.30.0000.00717.60
8.1.20.0040.00417.48
8.1.10.0000.00817.46
8.1.00.0000.00917.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.46
8.0.270.0040.00417.20
8.0.260.0000.00617.13
8.0.250.0030.00316.86
8.0.240.0070.00016.78
8.0.230.0050.00316.85
8.0.220.0050.00216.80
8.0.210.0000.00816.84
8.0.200.0000.00716.86
8.0.190.0060.00316.88
8.0.180.0040.00416.88
8.0.170.0060.00616.90
8.0.160.0080.00016.84
8.0.150.0100.00316.73
8.0.140.0000.00716.80
8.0.130.0000.00513.29
8.0.120.0000.00816.81
8.0.110.0050.00216.94
8.0.100.0040.00416.73
8.0.90.0000.00716.70
8.0.80.0160.00616.77
8.0.70.0000.00816.76
8.0.60.0000.00716.71
8.0.50.0080.00016.86
8.0.30.0090.00716.98
8.0.20.0150.00517.40
8.0.10.0040.00416.91
8.0.00.0130.00616.60
7.4.330.0030.00315.55
7.4.320.0030.00316.50
7.4.300.0030.00316.56
7.4.290.0000.00816.54
7.4.280.0000.00716.54
7.4.270.0070.00016.45
7.4.260.0040.00716.53
7.4.250.0040.00416.32
7.4.240.0050.00316.35
7.4.230.0030.00316.35
7.4.220.0090.00916.54
7.4.210.0080.00516.46
7.4.200.0070.00016.36
7.4.160.0080.00816.47
7.4.150.0120.00617.40
7.4.140.0100.01117.86
7.4.130.0070.01116.32
7.4.120.0080.01316.45
7.4.110.0030.01416.21
7.4.100.0070.01116.39
7.4.90.0120.00616.46
7.4.80.0070.01419.39
7.4.70.0070.01516.50
7.4.60.0110.00516.52
7.4.50.0070.01116.42
7.4.40.0110.00616.45
7.4.30.0120.00416.52
7.4.00.0070.01014.77
7.3.330.0040.00413.02
7.3.320.0000.00512.97
7.3.310.0070.00015.99
7.3.300.0000.00716.11
7.3.290.0140.00416.13
7.3.280.0100.00816.12
7.3.270.0100.00717.40
7.3.260.0070.01216.28
7.3.250.0100.00816.10
7.3.240.0110.00616.18
7.3.230.0130.00616.28
7.3.210.0130.01016.57
7.3.200.0170.00016.34
7.3.190.0190.00316.42
7.3.180.0090.01316.04
7.3.170.0090.00916.06
7.3.160.0090.01016.30
7.3.10.0000.01316.46
7.3.00.0000.01416.13
7.2.330.0110.00716.39
7.2.320.0000.02216.51
7.2.310.0110.00716.55
7.2.300.0120.01016.60
7.2.290.0030.01716.38
7.2.130.0090.00916.57
7.2.120.0060.00616.63
7.2.110.0010.01216.46
7.2.100.0050.00516.55
7.2.90.0000.01416.83
7.2.80.0090.00616.44
7.2.70.0060.00916.74
7.2.60.0100.00316.59
7.2.50.0120.00616.76
7.2.40.0040.01116.44
7.2.30.0000.01016.79
7.2.20.0100.00316.68
7.2.10.0030.01016.37
7.2.00.0030.00616.59
7.1.250.0040.00415.18
7.1.200.0100.00315.73
7.1.70.0000.01016.63
7.1.60.0030.01017.21
7.1.50.0230.01732.67
7.1.40.0230.01732.28
7.1.30.0370.01332.38
7.1.20.0330.01032.70
7.1.10.0270.00714.37
7.1.00.0300.01314.66
7.0.200.0030.01316.71
7.0.190.0170.01014.67
7.0.180.0200.00714.18
7.0.170.0270.00714.15
7.0.160.0300.01714.42
7.0.150.0330.00714.15
7.0.140.0300.01014.29
7.0.130.0300.01014.61
7.0.120.0230.01314.39
7.0.110.0200.01014.18
7.0.100.0170.01014.18
7.0.90.0130.01014.28
7.0.80.0170.01014.34
7.0.70.0230.00714.43
7.0.60.0230.01713.97
7.0.50.0930.01714.40
7.0.40.0200.01314.63
7.0.30.0270.01314.48
7.0.20.0200.01014.61
7.0.10.0170.01314.36
7.0.00.0230.01314.36

preferences:
57.06 ms | 401 KiB | 5 Q