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, ); $lines = array(); if (array_key_exists("line1", $address)) $lines[] = $address["line1"]; if (array_key_exists("line2", $address)) $lines[] = $address["line2"]; if (array_key_exists("line3", $address)) $lines[] = $address["line3"]; if (array_key_exists("line4", $address)) $lines[] = $address["line4"]; if (array_key_exists("line4", $address)) $lines[] = $address["line5"]; echo implode("\n", $lines);

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.0180.00018.43
8.3.50.0120.00821.94
8.3.40.0070.00719.02
8.3.30.0140.00019.12
8.3.20.0040.00420.13
8.3.10.0080.00021.95
8.3.00.0000.00820.89
8.2.180.0150.00016.74
8.2.170.0120.00322.96
8.2.160.0070.00719.16
8.2.150.0080.00024.18
8.2.140.0120.00324.66
8.2.130.0040.00426.16
8.2.120.0110.00017.75
8.2.110.0030.00622.25
8.2.100.0070.00719.64
8.2.90.0040.00419.22
8.2.80.0000.00818.05
8.2.70.0060.00317.50
8.2.60.0030.00518.04
8.2.50.0060.00318.07
8.2.40.0000.00820.07
8.2.30.0040.00418.05
8.2.20.0040.00417.75
8.2.10.0040.00417.56
8.2.00.0080.00017.50
8.1.280.0110.00425.92
8.1.270.0050.00222.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.83
8.1.230.0080.00319.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0080.00017.50
8.1.180.0060.00318.55
8.1.170.0040.00418.58
8.1.160.0000.00822.14
8.1.150.0000.00718.45
8.1.140.0040.00417.43
8.1.130.0000.01017.77
8.1.120.0070.00017.43
8.1.110.0050.00317.36
8.1.100.0000.00717.47
8.1.90.0000.00717.40
8.1.80.0080.00017.27
8.1.70.0080.00017.27
8.1.60.0040.00417.54
8.1.50.0000.00817.41
8.1.40.0040.00417.50
8.1.30.0000.00817.63
8.1.20.0000.00917.47
8.1.10.0050.00317.50
8.1.00.0000.00717.38
8.0.300.0000.00718.77
8.0.290.0050.00317.18
8.0.280.0000.00818.45
8.0.270.0000.00817.18
8.0.260.0030.00316.75
8.0.250.0000.00717.00
8.0.240.0070.00016.91
8.0.230.0030.00316.92
8.0.220.0040.00416.85
8.0.210.0030.00316.82
8.0.200.0000.00716.76
8.0.190.0040.00416.96
8.0.180.0030.00316.89
8.0.170.0060.00316.84
8.0.160.0000.00816.80
8.0.150.0000.00716.67
8.0.140.0000.00816.83
8.0.130.0030.00313.23
8.0.120.0050.00316.86
8.0.110.0080.00016.84
8.0.100.0000.00716.78
8.0.90.0000.00716.80
8.0.80.0070.01016.83
8.0.70.0070.00016.90
8.0.60.0000.00716.77
8.0.50.0040.00416.61
8.0.30.0070.01217.05
8.0.20.0120.01117.40
8.0.10.0040.00416.82
8.0.00.0090.01016.78
7.4.330.0050.00015.00
7.4.320.0060.00016.41
7.4.300.0000.00716.61
7.4.290.0070.00016.61
7.4.280.0000.00816.54
7.4.270.0070.00016.41
7.4.260.0030.00316.42
7.4.250.0030.00616.48
7.4.240.0020.00616.53
7.4.230.0040.00216.40
7.4.220.0160.00016.56
7.4.210.0070.00816.49
7.4.200.0030.00416.54
7.4.190.0030.00516.68
7.4.160.0060.01616.61
7.4.150.0110.00517.40
7.4.140.0110.00717.86
7.4.130.0120.00416.53
7.4.120.0090.00816.61
7.4.110.0100.00616.36
7.4.100.0140.00516.68
7.4.90.0100.01116.38
7.4.80.0080.00819.39
7.4.70.0150.00816.52
7.4.60.0110.00416.47
7.4.50.0000.00816.36
7.4.40.0030.01222.77
7.4.30.0170.00816.49
7.4.00.0030.01015.01
7.3.330.0060.00013.13
7.3.320.0050.00013.09
7.3.310.0070.00016.36
7.3.300.0030.00316.11
7.3.290.0030.01216.20
7.3.280.0140.00316.18
7.3.270.0130.01017.40
7.3.260.0110.01216.16
7.3.250.0120.00616.27
7.3.240.0060.01016.20
7.3.230.0080.00816.39
7.3.210.0190.00016.29
7.3.200.0110.01119.39
7.3.190.0100.01316.23
7.3.180.0040.01216.43
7.3.170.0060.00916.33
7.3.160.0000.01516.31
7.3.120.0070.00714.45
7.2.330.0060.01216.49
7.2.320.0120.00616.61
7.2.310.0100.01316.53
7.2.300.0060.01016.45
7.2.290.0100.00616.73
7.1.70.0030.00516.82
7.1.60.0180.00719.82
7.1.50.0060.00617.05
7.1.00.0000.07722.34
7.0.200.0100.00016.61
7.0.140.0000.07722.00
7.0.60.0070.08320.01
7.0.50.0070.08017.77
7.0.40.0070.04020.03
7.0.30.0200.04020.20
7.0.20.0370.07020.23
7.0.10.0100.04720.02
7.0.00.0100.08020.33
5.6.280.0000.07720.89
5.6.210.0070.06720.51
5.6.200.0130.05318.22
5.6.190.0100.08720.41
5.6.180.0370.07320.39
5.6.170.0230.08320.45
5.6.160.0030.04320.48
5.6.150.0000.04318.18
5.6.140.0030.08018.07
5.6.130.0130.07318.18
5.6.120.0130.05320.98
5.6.110.0070.08020.97
5.6.100.0130.07720.99
5.6.90.0130.07321.06
5.6.80.0200.06320.53
5.5.350.4270.04020.33
5.5.340.0070.03317.91
5.5.330.0070.03720.43
5.5.320.0330.03720.24
5.5.310.0270.04320.29
5.5.300.0170.04717.94
5.5.290.0100.07718.07
5.5.280.0170.07020.68
5.5.270.0070.04720.96
5.5.260.0300.06320.89
5.5.250.0070.04020.63
5.5.240.0330.06320.27
5.4.450.1300.04019.21
5.4.440.0600.04019.45
5.4.430.0770.04319.54
5.4.420.0500.04019.57
5.4.410.0900.04719.44
5.4.400.0830.03019.11
5.4.390.1000.03319.13
5.4.380.0430.05318.63
5.4.370.0400.04718.56
5.4.360.0230.06018.74
5.4.350.0230.06718.50
5.4.340.0400.04318.50
5.4.320.0060.03912.46
5.4.310.0060.03812.45
5.4.300.0060.04112.46
5.4.290.0080.04012.46
5.4.280.0060.03712.35
5.4.270.0060.03612.35
5.4.260.0030.05318.73
5.4.250.0100.05718.80
5.4.240.0070.05718.64
5.4.230.0070.05318.81
5.4.220.0100.07719.02
5.4.210.0030.05318.92
5.4.200.0100.07318.92
5.4.190.0100.04718.92
5.4.180.0030.05318.98
5.4.170.0130.04318.88
5.4.160.0070.05018.89
5.4.150.0070.07718.98
5.4.140.0030.05316.28
5.4.130.0070.05016.50
5.4.120.0030.05016.31
5.4.110.0070.06716.29
5.4.100.0070.04716.42
5.4.90.0130.05016.38
5.4.80.0130.04016.20
5.4.70.0000.06016.27
5.4.60.0030.05016.50
5.4.50.0030.05316.23
5.4.40.0070.05016.32
5.4.30.0100.04316.17
5.4.20.0070.07016.41
5.4.10.0100.05016.23
5.4.00.0130.05715.69
5.3.290.0060.04812.80
5.3.280.0130.06014.61
5.3.270.0030.05714.63
5.3.260.0070.05714.46
5.3.250.0070.05714.70
5.3.240.0070.04714.62
5.3.230.0100.04714.48
5.3.220.0100.05314.49
5.3.210.0130.04714.62
5.3.200.0030.05314.43
5.3.190.0130.04714.66
5.3.180.0030.05314.58
5.3.170.0100.05014.45
5.3.160.0030.05314.27
5.3.150.0070.05014.44
5.3.140.0130.05014.57
5.3.130.0100.04714.43
5.3.120.0100.07714.54
5.3.110.0000.08714.55
5.3.100.0070.05314.05
5.3.90.0100.04714.17
5.3.80.0000.05713.93
5.3.70.0030.07014.06
5.3.60.0230.03714.01
5.3.50.0130.04713.96
5.3.40.0070.07014.04
5.3.30.0130.06313.61
5.3.20.0100.06013.53
5.3.10.0100.04313.57
5.3.00.0030.05013.66
5.2.170.0070.04010.90
5.2.160.0100.04011.06
5.2.150.0070.04711.16
5.2.140.0070.04711.03
5.2.130.0070.04011.12
5.2.120.0070.05711.25
5.2.110.0100.05311.02
5.2.100.0130.05011.11
5.2.90.0100.04011.05
5.2.80.0030.05711.11
5.2.70.0030.04310.99
5.2.60.0030.05010.97
5.2.50.0030.04011.04
5.2.40.0030.03711.00
5.2.30.0030.04011.09
5.2.20.0000.04711.05
5.2.10.0070.03710.94
5.2.00.0000.04310.72
5.1.60.0100.0339.95
5.1.50.0070.0479.92
5.1.40.0070.0309.90
5.1.30.0030.04710.39
5.1.20.0100.03710.43
5.1.10.0030.03710.26
5.1.00.0000.0439.99
5.0.50.0030.0408.70
5.0.40.0030.0338.27
5.0.30.0030.0508.32
5.0.20.0030.0278.17
5.0.10.0070.0238.10
5.0.00.0000.0438.36
4.4.90.0000.0236.43
4.4.80.0030.0206.43
4.4.70.0070.0206.43
4.4.60.0030.0276.43
4.4.50.0070.0176.43
4.4.40.0030.0376.43
4.4.30.0000.0306.43
4.4.20.0000.0236.43
4.4.10.0070.0176.43
4.4.00.0070.0406.43
4.3.110.0000.0276.43
4.3.100.0000.0236.43
4.3.90.0070.0176.43
4.3.80.0000.0376.43
4.3.70.0030.0236.43
4.3.60.0070.0276.43
4.3.50.0030.0206.43
4.3.40.0000.0336.43
4.3.30.0000.0236.43
4.3.20.0070.0206.43
4.3.10.0000.0236.43
4.3.00.0130.01712.80

preferences:
47.84 ms | 400 KiB | 5 Q