3v4l.org

run code in 300+ PHP versions simultaneously
<?php $links = [ [ 'type_id' => '1', 'url' => '' ], [ 'type_id' => '2', 'url' => '' ] ]; $types = [ [ 'value' => 'facebook' ], [ 'value' => 'twitter' ] ]; $data = [ 'primary' => [ 'address_details' => [], 'contact_details' => [], 'social_links' => array_combine(array_column($types, 'value'), $links) ] ]; print_r($data);

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.130.0060.00316.56
8.3.120.0040.01519.04
8.3.110.0110.00820.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0060.00317.97
8.3.70.0120.00816.38
8.3.60.0070.00718.31
8.3.50.0110.00517.24
8.3.40.0120.00318.48
8.3.30.0090.00618.51
8.3.20.0000.00721.54
8.3.10.0030.00518.78
8.3.00.0030.00619.13
8.2.250.0040.00416.57
8.2.240.0040.00418.28
8.2.230.0090.00022.58
8.2.220.0030.00637.54
8.2.210.0140.00026.77
8.2.200.0040.00818.41
8.2.190.0090.00616.70
8.2.180.0110.00418.54
8.2.170.0070.01022.96
8.2.160.0160.00719.44
8.2.150.0050.00224.18
8.2.140.0050.00224.66
8.2.130.0040.00422.21
8.2.120.0040.00426.35
8.2.110.0060.00320.99
8.2.100.0060.00617.88
8.2.90.0030.00617.91
8.2.80.0040.00418.04
8.2.70.0040.00417.93
8.2.60.0000.00918.22
8.2.50.0040.00418.10
8.2.40.0080.00019.47
8.2.30.0040.00419.28
8.2.20.0030.00618.01
8.2.10.0040.00419.42
8.2.00.0040.00417.94
8.1.300.0050.00516.19
8.1.290.0030.00630.84
8.1.280.0170.00325.92
8.1.270.0060.00320.24
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00320.38
8.1.230.0040.00720.85
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0040.00418.87
8.1.150.0050.00218.86
8.1.140.0030.00320.17
8.1.130.0030.00320.17
8.1.120.0080.00017.30
8.1.110.0000.00717.37
8.1.100.0070.00017.32
8.1.90.0030.00517.38
8.1.80.0030.00617.29
8.1.70.0040.00417.43
8.1.60.0000.00817.52
8.1.50.0000.00817.35
8.1.40.0040.00417.33
8.1.30.0000.00717.44
8.1.20.0030.00617.45
8.1.10.0080.00017.48
8.1.00.0000.00817.48
8.0.300.0040.00419.64
8.0.290.0040.00416.63
8.0.280.0040.00418.32
8.0.270.0000.00717.22
8.0.260.0000.00618.32
8.0.250.0030.00316.86
8.0.240.0000.00716.87
8.0.230.0000.00716.92
8.0.220.0060.00016.74
8.0.210.0030.00316.71
8.0.200.0000.00816.95
8.0.190.0000.00716.87
8.0.180.0060.00316.84
8.0.170.0060.00316.86
8.0.160.0070.00016.82
8.0.150.0000.00816.75
8.0.140.0050.00216.78
8.0.130.0050.00013.23
8.0.120.0040.00416.80
8.0.110.0000.00716.86
8.0.100.0040.00416.69
8.0.90.0050.00316.86
8.0.80.0040.01316.84
8.0.70.0040.00316.72
8.0.60.0000.00716.80
8.0.50.0040.00416.78
8.0.30.0120.00617.00
8.0.20.0060.01316.97
8.0.10.0070.00016.83
8.0.00.0080.01016.73
7.4.330.0000.00415.55
7.4.320.0000.00716.42
7.4.300.0030.00316.35
7.4.290.0000.00616.43
7.4.280.0000.00816.41
7.4.270.0030.00716.43
7.4.260.0040.00416.44
7.4.250.0000.00716.58
7.4.240.0040.00416.54
7.4.230.0030.00316.55
7.4.220.0000.00816.54
7.4.210.0090.00716.54
7.4.200.0030.00316.34
7.4.160.0060.01016.35
7.4.140.0160.00817.86
7.4.130.0190.00416.46
7.4.120.0100.01016.42
7.4.110.0070.01016.41
7.4.100.0120.01216.57
7.4.90.0050.01116.53
7.4.80.0110.00619.39
7.4.70.0050.01416.59
7.4.60.0100.00616.29
7.4.50.0080.00316.15
7.4.40.0060.01116.38
7.4.00.0070.00914.97
7.3.330.0000.00513.18
7.3.320.0030.00313.11
7.3.310.0000.00716.20
7.3.300.0060.00016.24
7.3.290.0050.00916.24
7.3.280.0070.01016.20
7.3.260.0140.01416.34
7.3.240.0110.00716.37
7.3.230.0030.01316.29
7.3.210.0040.01416.36
7.3.200.0080.00816.42
7.3.190.0100.01416.25
7.3.180.0160.00716.20
7.3.170.0140.00516.29
7.3.160.0040.01716.25
7.3.120.0040.01214.94
7.3.110.0070.01014.71
7.3.100.0030.01014.54
7.3.90.0060.01214.58
7.3.80.0060.00914.90
7.3.70.0040.00414.85
7.3.60.0110.00314.65
7.3.50.0080.00014.47
7.3.40.0000.01314.77
7.3.30.0110.00314.84
7.3.20.4360.00915.31
7.3.10.0870.00715.61
7.3.00.3390.00815.54
7.2.330.0060.01516.57
7.2.320.0060.01316.52
7.2.310.0080.00816.50
7.2.300.0100.01116.71
7.2.290.0100.00716.35
7.2.250.0100.00714.50
7.2.240.0070.00715.09
7.2.230.0030.00714.70
7.2.220.0100.01014.88
7.2.210.0090.00615.02
7.2.200.0040.00414.61
7.2.190.0000.01714.80
7.2.180.0070.00314.95
7.2.170.0040.01014.78
7.2.150.0190.00514.82
7.2.140.7000.00714.93
7.2.130.0350.01014.80
7.2.120.5180.01314.44
7.2.110.7660.01014.64
7.2.100.6300.00714.59
7.2.90.4190.01714.89
7.2.80.5320.01014.83
7.2.70.1460.00614.64
7.2.60.6080.00714.82
7.2.50.4990.00014.44
7.2.40.6540.01014.76
7.2.30.4930.00314.55
7.2.20.6670.00714.55
7.2.10.4780.00714.46
7.2.00.3700.00314.82
7.1.330.0000.01215.52
7.1.320.0060.00915.80
7.1.310.0060.00315.98
7.1.300.0030.00615.66
7.1.290.0000.01115.89
7.1.280.0030.01015.37
7.1.270.0100.00315.72
7.1.260.0080.00015.64
7.1.250.3530.00313.73

preferences:
27.42 ms | 403 KiB | 5 Q