3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!array_key_exists('deleted', $params)) { $params = array_merge($params, array('deleted' => null)); } // Is this not faster if (!array_key_exists('deleted', $params)) { $params['deleted'] = null; }

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.0130.00618.24
8.3.50.0070.01018.16
8.3.40.0120.00318.63
8.3.30.0060.00918.63
8.3.20.0040.00418.81
8.3.10.0080.00021.91
8.3.00.0040.00422.58
8.2.180.0140.00718.42
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00021.11
8.2.120.0060.00326.35
8.2.110.0070.00321.00
8.2.100.0070.00419.37
8.2.90.0030.00617.91
8.2.80.0030.00619.16
8.2.70.0030.00517.50
8.2.60.0080.00017.75
8.2.50.0070.00017.55
8.2.40.0000.01019.05
8.2.30.0040.00421.10
8.2.20.0040.00418.02
8.2.10.0040.00418.12
8.2.00.0080.00019.12
8.1.280.0140.00725.92
8.1.270.0030.00623.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00622.01
8.1.230.0090.00320.86
8.1.220.0110.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0030.00622.03
8.1.170.0060.00318.55
8.1.160.0040.00418.79
8.1.150.0040.00418.70
8.1.140.0000.00719.55
8.1.130.0080.00017.39
8.1.120.0000.00717.39
8.1.110.0060.00317.38
8.1.100.0030.00617.43
8.1.90.0060.00317.30
8.1.80.0030.00517.29
8.1.70.0030.00317.36
8.1.60.0030.00617.34
8.1.50.0040.00417.46
8.1.40.0030.00617.45
8.1.30.0040.00417.52
8.1.20.0030.00617.60
8.1.10.0050.00317.45
8.1.00.0000.00817.34
8.0.300.0040.00420.10
8.0.290.0030.00617.18
8.0.280.0000.00718.41
8.0.270.0070.00316.82
8.0.260.0030.00316.73
8.0.250.0000.00716.95
8.0.240.0040.00316.95
8.0.230.0030.00316.94
8.0.220.0030.00316.88
8.0.210.0040.00416.89
8.0.200.0070.00016.96
8.0.190.0000.00816.85
8.0.180.0070.00016.88
8.0.170.0040.00416.91
8.0.160.0050.00216.93
8.0.150.0000.00716.85
8.0.140.0000.00816.74
8.0.130.0060.00013.33
8.0.120.0030.00616.86
8.0.110.0000.00716.73
8.0.100.0000.00716.76
8.0.90.0050.00216.86
8.0.80.0000.01816.93
8.0.70.0050.00316.75
8.0.60.0040.00416.87
8.0.50.0030.00516.76
8.0.30.0070.01017.13
8.0.20.0060.01217.40
8.0.10.0040.00417.02
8.0.00.0070.01516.68
7.4.330.0000.00615.55
7.4.320.0000.00616.56
7.4.300.0060.00016.50
7.4.290.0030.00316.45
7.4.280.0050.00316.41
7.4.270.0060.00316.52
7.4.260.0060.00016.48
7.4.250.0000.00816.48
7.4.240.0000.00716.55
7.4.230.0070.00016.58
7.4.220.0000.00916.61
7.4.210.0120.00416.55
7.4.200.0000.00716.60
7.4.160.0080.00716.61
7.4.140.0150.01017.86
7.4.130.0140.00316.57
7.4.120.0130.00316.57
7.4.110.0120.01216.58
7.4.100.0130.00316.58
7.4.90.0090.00816.36
7.4.80.0070.01419.39
7.4.70.0070.01016.76
7.4.60.0100.00616.45
7.4.50.0030.01316.64
7.4.40.0100.00716.46
7.4.00.0080.00814.97
7.3.330.0000.00613.19
7.3.320.0030.00313.02
7.3.310.0000.00716.04
7.3.300.0000.00716.27
7.3.290.0050.00316.26
7.3.280.0080.00916.29
7.3.260.0130.00616.31
7.3.240.0100.00916.30
7.3.230.0170.00316.45
7.3.210.0090.00916.32
7.3.200.0130.00316.27
7.3.190.0160.00016.60
7.3.180.0120.00316.32
7.3.170.0090.01216.43
7.3.160.0090.00616.35
7.3.120.0110.00814.79
7.3.110.0050.01314.86
7.3.100.0040.01214.95
7.3.90.0110.00514.68
7.3.80.0040.00714.99
7.3.70.0080.00814.85
7.3.60.0010.01414.67
7.3.50.0080.00514.74
7.3.40.0060.01014.78
7.3.30.0070.00714.86
7.3.20.0080.00516.48
7.3.10.0070.00716.59
7.3.00.0050.00916.58
7.2.330.0200.00316.51
7.2.320.0070.01016.38
7.2.310.0080.00816.53
7.2.300.0040.01816.71
7.2.290.0090.00916.70
7.2.250.0130.00515.15
7.2.240.0070.01214.71
7.2.230.0060.01114.90
7.2.220.0070.00715.18
7.2.210.0080.00515.07
7.2.200.0080.00214.79
7.2.190.0060.00714.67
7.2.180.0040.01214.95
7.2.170.0030.00814.91
7.2.60.0000.01316.98
7.2.50.0000.01316.76
7.2.40.0560.01017.63
7.2.30.1120.02617.57
7.2.20.0770.02717.59
7.2.10.0890.01217.40
7.2.00.0760.00717.77
7.1.330.0070.00715.84
7.1.320.0020.01315.85
7.1.310.0030.01015.91
7.1.300.0110.00315.61
7.1.290.0100.00615.75
7.1.280.0070.00715.63
7.1.270.0080.00715.74
7.1.260.0040.00915.56
7.1.200.0090.00615.76
7.1.160.0640.00916.55
7.1.150.0700.00616.25
7.1.140.0840.01216.48
7.1.130.0940.01116.40
7.1.120.1070.01216.35
7.1.110.0600.00816.04
7.1.100.0730.00915.85
7.1.90.0690.00716.17
7.1.80.0760.00616.09
7.1.70.0850.00715.26
7.1.60.1090.01333.27
7.1.50.0860.01332.91
7.1.40.0710.01432.43
7.1.30.1020.01732.68
7.1.20.0790.01332.61
7.1.10.0810.00914.46
7.1.00.1070.00714.61

preferences:
55.91 ms | 400 KiB | 5 Q