3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys = array( 'staff_first_name' => NULL, 'staff_last_name' => NULL, 'staff_years' => NULL ); $values = array( 'id' => 123, 'years' => 5, 'department' => "IT", 'first_name' => 'jon', 'last_name' => 'doe', ); $val = preg_grep("/first_name|last_name|years/",array_values(array_flip($values))); $values = Array_intersect_key($values, array_flip($val)); ksort($values); ksort($keys); Var_dump(array_combine(array_keys($keys), $values));

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.80.0090.00316.85
8.3.70.0070.01416.58
8.3.60.0090.01218.56
8.3.50.0200.00218.08
8.3.40.0000.01518.78
8.3.30.0030.01318.72
8.3.20.0040.00419.02
8.3.10.0080.00022.08
8.3.00.0040.00419.68
8.2.200.0060.00616.63
8.2.190.0110.00416.75
8.2.180.0180.00025.92
8.2.170.0090.00618.95
8.2.160.0130.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00319.95
8.2.110.0090.00021.06
8.2.100.0060.00617.78
8.2.90.0000.00817.97
8.2.80.0040.00418.09
8.2.70.0050.00317.80
8.2.60.0050.00318.04
8.2.50.0030.00718.10
8.2.40.0060.00319.28
8.2.30.0070.00021.14
8.2.20.0040.00418.02
8.2.10.0040.00418.00
8.2.00.0050.00319.17
8.1.290.0090.00030.84
8.1.280.0030.01525.92
8.1.270.0060.00323.92
8.1.260.0060.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00323.78
8.1.230.0040.00721.03
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0000.00818.51
8.1.160.0000.00818.90
8.1.150.0040.00418.76
8.1.140.0040.00417.83
8.1.130.0030.00319.04
8.1.120.0070.00017.45
8.1.110.0070.00417.54
8.1.100.0000.00717.43
8.1.90.0050.00217.56
8.1.80.0000.01117.46
8.1.70.0040.00417.56
8.1.60.0040.00417.67
8.1.50.0020.00517.53
8.1.40.0040.00417.52
8.1.30.0080.00017.66
8.1.20.0060.00317.64
8.1.10.0000.00817.64
8.1.00.0040.00417.63
8.0.300.0040.00419.90
8.0.290.0040.00416.75
8.0.280.0030.00318.47
8.0.270.0040.00417.13
8.0.260.0040.00417.20
8.0.250.0080.00317.00
8.0.240.0000.00716.94
8.0.230.0100.00016.91
8.0.220.0080.00016.99
8.0.210.0000.00716.89
8.0.200.0040.00417.04
8.0.190.0070.00316.91
8.0.180.0000.00817.00
8.0.170.0080.00016.88
8.0.160.0030.00516.95
8.0.150.0000.00816.82
8.0.140.0070.00016.97
8.0.130.0070.00013.31
8.0.120.0040.00416.87
8.0.110.0040.00416.90
8.0.100.0050.00217.09
8.0.90.0070.00016.98
8.0.80.0150.00016.93
8.0.70.0040.00416.92
8.0.60.0000.00716.88
8.0.50.0040.00417.01
8.0.30.0140.00517.33
8.0.20.0070.01117.40
8.0.10.0040.00417.04
8.0.00.0120.00616.77
7.4.330.0000.00715.55
7.4.320.0070.00016.66
7.4.300.0020.00516.50
7.4.290.0030.00616.65
7.4.280.0030.00516.54
7.4.270.0000.00716.51
7.4.260.0000.00816.73
7.4.250.0070.00016.66
7.4.240.0070.00016.67
7.4.230.0030.00316.76
7.4.220.0030.00316.78
7.4.210.0090.00816.75
7.4.200.0000.00716.55
7.4.160.0110.00516.79
7.4.140.0090.00917.86
7.4.130.0100.01316.58
7.4.120.0090.01016.57
7.4.110.0130.00416.82
7.4.100.0110.00516.57
7.4.90.0090.00916.57
7.4.80.0110.01219.39
7.4.70.0030.01316.58
7.4.60.0130.00316.49
7.4.50.0110.00216.45
7.4.40.0120.01216.81
7.4.00.0090.00415.04
7.3.330.0050.00013.04
7.3.320.0000.00613.18
7.3.310.0030.00316.32
7.3.300.0000.00616.15
7.3.290.0030.00316.29
7.3.280.0110.00616.30
7.3.260.0060.01316.38
7.3.240.0090.00916.40
7.3.230.0140.00416.21
7.3.210.0160.00016.30
7.3.200.0030.01316.29
7.3.190.0070.01016.51
7.3.180.0060.00916.30
7.3.170.0080.00816.32
7.3.160.0120.00416.52
7.3.120.0070.01315.06
7.3.110.0040.01514.79
7.3.100.0070.00714.54
7.3.90.0090.00914.81
7.3.80.0060.00914.89
7.3.70.0060.00914.86
7.3.60.0100.00615.00
7.3.50.0030.01614.92
7.3.40.0000.01114.70
7.3.30.0110.00414.77
7.3.20.0100.00616.66
7.3.10.0100.00616.93
7.3.00.0000.01416.55
7.2.330.0060.01516.54
7.2.320.0170.00416.73
7.2.310.0140.01016.57
7.2.300.0070.01016.59
7.2.290.0110.00716.51
7.2.250.0100.00715.05
7.2.240.0030.01714.84
7.2.230.0030.01715.11
7.2.220.0070.00714.84
7.2.210.0120.00314.86
7.2.200.0070.00814.97
7.2.190.0100.01015.14
7.2.180.0090.00915.15
7.2.170.0000.00915.25
7.2.60.0030.01317.00
7.2.40.1200.01318.20
7.2.30.0960.01118.29
7.2.20.1200.00817.99
7.2.10.1410.00717.78
7.2.00.1460.00618.18
7.1.330.0060.01115.96
7.1.320.0000.01015.67
7.1.310.0030.00915.59
7.1.300.0110.00715.97
7.1.290.0100.00716.07
7.1.280.0070.00716.05
7.1.270.0070.00716.02
7.1.260.0100.00715.74
7.1.200.0060.00615.61
7.1.160.1910.00816.83
7.1.150.1370.00816.83
7.1.140.1360.00516.91
7.1.130.1370.00516.86
7.1.120.1590.00816.61
7.1.110.1770.00816.16
7.1.100.1630.00916.17
7.1.90.1630.00616.40
7.1.80.1570.00616.54
7.1.70.1210.00815.59
7.1.60.1540.00833.59
7.1.50.1790.01133.26
7.1.40.1540.01232.64
7.1.30.1800.01232.98
7.1.20.2020.01032.72
7.1.10.2060.01115.12
7.1.00.2190.00915.13

preferences:
26.66 ms | 403 KiB | 5 Q