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', '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.0040.01116.50
8.3.50.0120.00918.03
8.3.40.0000.01418.54
8.3.30.0040.01118.57
8.3.20.0040.00421.94
8.3.10.0030.00623.66
8.3.00.0090.00019.44
8.2.180.0130.01016.75
8.2.170.0100.00722.96
8.2.160.0030.01019.20
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0040.00421.00
8.2.110.0030.00719.30
8.2.100.0060.00617.72
8.2.90.0060.00319.05
8.2.80.0040.00419.23
8.2.70.0030.00617.50
8.2.60.0060.00317.91
8.2.50.0040.00418.10
8.2.40.0000.00820.57
8.2.30.0060.00319.21
8.2.20.0050.00318.06
8.2.10.0040.00417.98
8.2.00.0070.00017.91
8.1.280.0110.00725.92
8.1.270.0030.00623.71
8.1.260.0040.00426.35
8.1.250.0110.00328.09
8.1.240.0000.01022.41
8.1.230.0120.00018.97
8.1.220.0100.00017.74
8.1.210.0030.00618.77
8.1.200.0000.00917.10
8.1.190.0050.00217.23
8.1.180.0000.00918.10
8.1.170.0030.00518.53
8.1.160.0000.00718.73
8.1.150.0040.00418.88
8.1.140.0050.00219.57
8.1.130.0050.00218.87
8.1.120.0000.00717.44
8.1.110.0060.00317.42
8.1.100.0040.00417.43
8.1.90.0040.00417.42
8.1.80.0000.00717.28
8.1.70.0000.00717.42
8.1.60.0030.00617.55
8.1.50.0000.00817.48
8.1.40.0040.00417.34
8.1.30.0070.00017.52
8.1.20.0000.00717.52
8.1.10.0050.00217.45
8.1.00.0080.00017.42
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0030.00318.38
8.0.270.0070.00017.11
8.0.260.0030.00317.10
8.0.250.0070.00016.90
8.0.240.0000.00716.89
8.0.230.0040.00416.79
8.0.220.0080.00016.74
8.0.210.0080.00016.70
8.0.200.0040.00416.91
8.0.190.0000.01116.90
8.0.180.0000.00716.85
8.0.170.0040.00716.76
8.0.160.0030.00316.83
8.0.150.0060.00316.66
8.0.140.0040.00416.77
8.0.130.0030.00313.27
8.0.120.0080.00316.89
8.0.110.0040.00416.70
8.0.100.0030.00316.89
8.0.90.0000.00716.89
8.0.80.0090.00616.80
8.0.70.0030.00616.71
8.0.60.0040.00416.72
8.0.50.0040.00416.73
8.0.30.0120.00817.19
8.0.20.0100.01017.40
8.0.10.0050.00316.82
8.0.00.0040.01416.77
7.4.330.0000.00715.55
7.4.320.0060.00016.46
7.4.300.0000.00616.52
7.4.290.0040.00416.45
7.4.280.0000.00816.42
7.4.270.0030.00316.39
7.4.260.0040.00716.41
7.4.250.0000.00816.45
7.4.240.0000.00716.56
7.4.230.0000.00716.56
7.4.220.0160.00316.43
7.4.210.0090.00416.55
7.4.200.0050.00216.54
7.4.160.0080.01016.18
7.4.150.0180.00017.40
7.4.140.0140.01017.86
7.4.130.0070.01016.55
7.4.120.0120.00816.39
7.4.110.0090.00916.67
7.4.100.0140.00316.55
7.4.90.0070.01016.39
7.4.80.0110.01119.39
7.4.70.0140.00716.33
7.4.60.0060.00916.32
7.4.50.0070.00716.39
7.4.40.0130.00316.57
7.4.30.0030.01316.66
7.4.00.0070.00714.79
7.3.330.0030.00312.93
7.3.320.0000.00512.84
7.3.310.0030.00315.99
7.3.300.0000.00616.21
7.3.290.0080.00916.16
7.3.280.0070.01016.12
7.3.270.0120.00617.40
7.3.260.0070.01016.49
7.3.250.0090.00916.36
7.3.240.0110.01016.45
7.3.230.0090.01916.19
7.3.210.0140.00616.12
7.3.200.0130.00616.54
7.3.190.0000.01716.15
7.3.180.0060.01216.59
7.3.170.0090.00916.15
7.3.160.0100.00716.20
7.2.330.0090.00916.17
7.2.320.0140.00916.54
7.2.310.0140.00316.40
7.2.300.0140.00716.41
7.2.290.0040.01216.13
7.2.60.0050.00816.68
7.1.200.0060.00915.73
7.1.70.0000.00816.59
7.1.60.0040.00717.18
7.1.50.1000.01032.50
7.1.40.0830.01032.41
7.1.30.1100.01332.60
7.1.20.0730.00732.53
7.1.10.0630.00714.53
7.1.00.0530.01314.85
7.0.200.0030.01016.84
7.0.190.0770.01014.74
7.0.180.0530.01014.17
7.0.170.0730.01014.23
7.0.160.0700.01714.25
7.0.150.0500.00714.35
7.0.140.0530.01014.35
7.0.130.0470.01314.52
7.0.120.0600.01314.42
7.0.110.0570.01014.31
7.0.100.0330.01314.44
7.0.90.0500.01314.31
7.0.80.0500.01314.50
7.0.70.0600.00714.30
7.0.60.0570.01014.20
7.0.50.0500.01014.53
7.0.40.0630.00714.61
7.0.30.0530.01714.43
7.0.20.0430.01014.42
7.0.10.0330.00714.40
7.0.00.0330.01014.20

preferences:
59.73 ms | 401 KiB | 5 Q