3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'id' => 1, 'name' => 'John', 'address' => 'Some address 1', 'city' => 'NY' ], [ 'id' => 2, 'name' => 'Jack', 'address' => 'Some address 2', 'city' => 'NY' ] ]; $keep = ['id' => '', 'name' => '']; var_export( array_map( fn($row) => array_intersect_key($row, $keep), $array ) );

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.5.10.0120.00718.71
8.5.00.0170.00419.99
8.4.160.0110.01123.99
8.4.150.0020.00014.05
8.4.140.0120.00917.47
8.4.130.0110.01018.95
8.4.120.0130.00824.33
8.4.110.0100.00718.91
8.4.100.0130.00618.74
8.4.90.0100.01022.35
8.4.80.0080.00218.48
8.4.70.0130.01417.86
8.4.60.0100.01019.12
8.4.50.0110.01118.55
8.4.40.0070.01317.79
8.4.30.0130.00720.05
8.4.20.0030.00618.02
8.4.10.0080.00017.72
8.3.280.0130.00718.39
8.3.270.0040.00416.40
8.3.260.0120.00716.43
8.3.250.0130.00519.17
8.3.240.0040.00517.17
8.3.230.0140.00516.34
8.3.220.0120.00718.76
8.3.210.0120.00516.49
8.3.200.0070.00216.49
8.3.190.0110.00717.11
8.3.180.0110.00417.29
8.3.170.0090.00920.48
8.3.160.0140.00317.19
8.3.150.0100.01018.80
8.3.140.0140.00416.62
8.3.130.0070.00718.44
8.3.120.0030.00620.89
8.3.110.0060.00320.94
8.3.100.0040.00416.45
8.3.90.0090.00026.77
8.3.80.0060.00316.48
8.3.70.0130.01016.58
8.3.60.0110.00718.30
8.3.50.0070.01119.88
8.3.40.0070.00718.63
8.3.30.0070.00718.54
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.290.0060.00320.19
8.2.280.0100.01018.48
8.2.270.0090.00916.85
8.2.260.0060.00318.25
8.2.250.0070.01018.18
8.2.240.0050.00217.15
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0000.00726.77
8.2.200.0040.00416.63
8.2.190.0070.00716.75
8.2.180.0140.00725.92
8.2.170.0150.00418.87
8.2.160.0110.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0050.00522.16
8.2.100.0090.00317.53
8.2.90.0040.00420.59
8.2.80.0080.00017.97
8.2.70.0000.00817.93
8.2.60.0040.00418.16
8.2.50.0040.00419.25
8.2.40.0000.00817.64
8.2.30.0000.00717.98
8.2.20.0000.00820.53
8.2.10.0000.00717.74
8.2.00.0000.00819.19
8.1.330.0160.00422.11
8.1.320.0100.01015.92
8.1.310.0140.00319.97
8.1.300.0150.00418.05
8.1.290.0040.00430.84
8.1.280.0100.00725.92
8.1.270.0080.00020.40
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0030.00722.18
8.1.230.0090.00618.98
8.1.220.0060.00317.78
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0040.00418.80
8.1.150.0040.00418.48
8.1.140.0040.00417.44
8.1.130.0030.00320.18
8.1.120.0000.00817.47
8.1.110.0070.00017.41
8.1.100.0040.00417.48
8.1.90.0050.00217.33
8.1.80.0000.00817.28
8.1.70.0030.00317.44
8.1.60.0000.00917.55
8.1.50.0000.00717.48
8.1.40.0000.00717.54
8.1.30.0040.00417.52
8.1.20.0040.00417.65
8.1.10.0060.00317.53
8.1.00.0040.00417.41
8.0.300.0040.00419.55
8.0.290.0000.00816.75
8.0.280.0040.00418.42
8.0.270.0040.00416.81
8.0.260.0000.00618.46
8.0.250.0020.00516.88
8.0.240.0000.00616.89
8.0.230.0030.00316.92
8.0.220.0050.00216.81
8.0.210.0000.00716.85
8.0.200.0000.00716.90
8.0.190.0000.00716.91
8.0.180.0090.00016.77
8.0.170.0060.00316.96
8.0.160.0040.00416.88
8.0.150.0000.00816.84
8.0.140.0050.00216.68
8.0.130.0040.00416.89
8.0.120.0040.00416.85
8.0.110.0070.00016.81
8.0.100.0070.00016.74
8.0.90.0030.00316.82
8.0.80.0050.00316.86
8.0.70.0040.00416.80
8.0.60.0000.00716.76
8.0.50.0050.00316.78
8.0.30.0040.00416.85
8.0.20.0070.00016.96
8.0.10.0040.00416.98
7.4.330.0000.00515.55
7.4.320.0030.00316.48
7.4.300.0030.00716.59
7.4.290.0020.00516.34
7.4.280.0030.00616.63
7.4.270.0080.00016.45
7.4.260.0030.00316.46
7.4.250.0000.00616.54
7.4.240.0040.00416.54
7.4.230.0030.00316.51
7.4.220.0040.00416.55
7.4.210.0030.00316.36
7.4.200.0040.00416.42
7.4.190.0000.00716.62
7.4.180.0000.00716.53
7.4.160.0030.00316.64
7.4.150.0030.00316.57
7.4.140.0000.00716.30
7.4.130.0030.00316.52
7.4.120.0000.00716.50
7.4.110.0000.00716.36
7.4.100.0030.00316.37
7.4.90.0000.00716.47
7.4.80.0050.00216.46
7.4.70.0000.00716.46
7.4.60.0030.00316.35
7.4.50.0000.00716.35
7.4.40.0080.00016.43
7.4.30.0040.00416.41
7.4.20.0030.00316.40
7.4.10.0030.00316.35
7.4.00.0000.00716.56

preferences:
36.67 ms | 403 KiB | 5 Q