3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address = array( "id" => 17570527.00, "seq" => 0, "line1" => "1 Heron Close", "line2" => "Bradwell", "post_town" => "Great Yarmouth", "county" => "Norfolk", "postcode" => "NR31 8LY", "mailsort" => "54136", "barcode" => "(NR318LY1AA)", "is_residential" => 1, "is_small_organisation" => 0, "is_large_organisation" => 0, ); function pluck_keys($array, ...$keys) { return array_intersect_key($address, array_flip($keys)); } echo implode("\n", pluck_keys(['line1', 'line2', 'line3', 'line4', 'line5']);

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)
5.4.260.0070.05319.03
5.4.250.0100.07718.90
5.4.240.0100.06318.90
5.4.230.0030.06018.99
5.4.220.0130.07318.76
5.4.210.0070.07318.96
5.4.200.0130.04718.98
5.4.190.0130.04318.98
5.4.180.0100.05018.60
5.4.170.0100.05318.84
5.4.160.0170.06719.01
5.4.150.0170.04718.79
5.4.140.0100.05016.43
5.4.130.0000.06716.48
5.4.120.0200.06316.38
5.4.110.0030.05316.50
5.4.100.0100.04316.41
5.4.90.0070.04716.50
5.4.80.0070.04716.34
5.4.70.0030.05716.37
5.4.60.0030.05016.44
5.4.50.0100.04716.49
5.4.40.0070.05716.54
5.4.30.0030.05016.52
5.4.20.0000.05716.45
5.4.10.0130.05716.62
5.4.00.0170.05315.80
5.3.280.0030.06714.57
5.3.270.0170.05014.73
5.3.260.0100.05714.74
5.3.250.0100.06314.59
5.3.240.0100.04714.73
5.3.230.0130.04314.58
5.3.220.0100.04714.59
5.3.210.0130.06014.73
5.3.200.0100.04314.47
5.3.190.0030.05314.47
5.3.180.0030.06014.55
5.3.170.0000.05314.58
5.3.160.0070.05014.74
5.3.150.0070.05014.57
5.3.140.0100.05314.69
5.3.130.0130.07314.45
5.3.120.0100.07014.63
5.3.110.0070.05314.70
5.3.100.0170.06314.12
5.3.90.0100.06014.11
5.3.80.0230.04313.94
5.3.70.0030.06014.10
5.3.60.0070.06314.09
5.3.50.0100.05013.79
5.3.40.0000.05713.79
5.3.30.0030.05013.88
5.3.20.0170.04713.52
5.3.10.0030.05013.71
5.3.00.0070.04713.64
5.2.170.0100.05311.31
5.2.160.0000.04311.23
5.2.150.0030.04311.15
5.2.140.0030.06311.38
5.2.130.0030.04011.11
5.2.120.0130.03311.20
5.2.110.0070.03711.32
5.2.100.0030.04711.18
5.2.90.0000.06011.18
5.2.80.0030.05310.99
5.2.70.0030.05311.17
5.2.60.0030.05711.00
5.2.50.0100.03311.11
5.2.40.0030.06011.21
5.2.30.0070.03710.87
5.2.20.0030.04011.14
5.2.10.0100.03311.04
5.2.00.0000.04310.90
5.1.60.0030.03310.01
5.1.50.0070.03710.20
5.1.40.0100.03710.02
5.1.30.0030.04310.41
5.1.20.0070.03710.41
5.1.10.0100.04310.27
5.1.00.0030.04310.07
5.0.50.0030.0338.60
5.0.40.0030.0338.39
5.0.30.0030.0408.48
5.0.20.0000.0308.15
5.0.10.0030.0408.27
5.0.00.0000.0438.14
4.4.90.0000.0235.85
4.4.80.0100.0175.84
4.4.70.0030.0305.81
4.4.60.0100.0205.83
4.4.50.0030.0305.84
4.4.40.0030.0375.87
4.4.30.0000.0275.81
4.4.20.0000.0235.90
4.4.10.0000.0305.91
4.4.00.0030.0505.87
4.3.110.0030.0205.79
4.3.100.0030.0205.80
4.3.90.0000.0305.72
4.3.80.0000.0335.75
4.3.70.0000.0305.77
4.3.60.0030.0205.77
4.3.50.0070.0205.76
4.3.40.0000.0375.63
4.3.30.0000.0305.07
4.3.20.0030.0205.07
4.3.10.0000.0275.07
4.3.00.0030.0236.42

preferences:
139.46 ms | 1394 KiB | 7 Q