3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original = array ( 0 => array ( 'id' => '63716', 'address' => '62.210.204.189', 'reverse' => NULL, 'server_id' => '51560', ), 1 => array ( 'id' => '63835', 'address' => '62.210.203.55', 'reverse' => '62-210-203-55.rev.poneytelecom.eu.', 'server_id' => '51674', ), 2 => array ( 'id' => '63836', 'address' => '62.210.203.56', 'reverse' => 'cloud.guyellia.com.', 'server_id' => '51675', ), // ... ); $transformed = []; foreach ($original as &$a) { $transformed[$a['server_id']] = $a; } unset($original); var_export($transformed);

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.0170.00318.56
8.3.50.0040.01120.02
8.3.40.0120.00618.84
8.3.30.0120.00318.75
8.3.20.0070.00020.29
8.3.10.0040.00421.93
8.3.00.0050.00320.80
8.2.180.0040.01118.29
8.2.170.0120.00622.96
8.2.160.0130.00719.21
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0060.00322.23
8.2.120.0030.00626.35
8.2.110.0030.00622.13
8.2.100.0040.00718.15
8.2.90.0000.00919.22
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00419.04
8.2.50.0000.00818.10
8.2.40.0070.00020.42
8.2.30.0000.00719.24
8.2.20.0050.00217.75
8.2.10.0070.00018.18
8.2.00.0040.00418.05
8.1.280.0180.00425.92
8.1.270.0070.00023.80
8.1.260.0170.00028.09
8.1.250.0100.00328.09
8.1.240.0090.00021.28
8.1.230.0110.00017.82
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0000.01017.22
8.1.190.0080.00017.13
8.1.180.0000.00818.10
8.1.170.0040.00418.55
8.1.160.0030.00418.94
8.1.150.0030.00518.89
8.1.140.0040.00419.55
8.1.130.0030.00317.58
8.1.120.0000.00717.49
8.1.110.0040.00417.35
8.1.100.0000.00717.38
8.1.90.0070.00017.46
8.1.80.0000.00717.39
8.1.70.0040.00417.51
8.1.60.0000.00917.63
8.1.50.0040.00417.56
8.1.40.0050.00317.48
8.1.30.0040.00417.65
8.1.20.0000.00717.56
8.1.10.0030.00517.59
8.1.00.0040.00417.49
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0000.00718.38
8.0.270.0070.00017.26
8.0.260.0000.00617.27
8.0.250.0030.00316.88
8.0.240.0000.00616.84
8.0.230.0070.00316.84
8.0.220.0070.00016.90
8.0.210.0030.00316.79
8.0.200.0000.00816.95
8.0.190.0040.00416.93
8.0.180.0040.00416.96
8.0.170.0040.00416.88
8.0.160.0030.00316.97
8.0.150.0070.00316.78
8.0.140.0080.00016.71
8.0.130.0000.00613.35
8.0.120.0000.00816.82
8.0.110.0090.00016.95
8.0.100.0070.00016.72
8.0.90.0030.00516.95
8.0.80.0030.01216.86
8.0.70.0000.00816.98
8.0.60.0030.00516.82
8.0.50.0000.00716.81
8.0.30.0090.00917.29
8.0.20.0100.01217.40
8.0.10.0030.00616.90
8.0.00.0080.00816.70
7.4.330.0000.00515.08
7.4.320.0060.00016.52
7.4.300.0060.00016.52
7.4.290.0030.00316.57
7.4.280.0000.00716.59
7.4.270.0030.00316.56
7.4.260.0030.00316.47
7.4.250.0030.00316.62
7.4.240.0000.00716.53
7.4.230.0000.00716.60
7.4.220.0120.00616.50
7.4.210.0090.00616.47
7.4.200.0070.00016.54
7.4.160.0040.01116.39
7.4.150.0210.00317.40
7.4.140.0130.00617.86
7.4.130.0120.00616.62
7.4.120.0070.01116.42
7.4.110.0120.00616.30
7.4.100.0130.00316.41
7.4.90.0100.01016.36
7.4.80.0120.00619.39
7.4.70.0130.00316.42
7.4.60.0060.01616.50
7.4.50.0060.00616.30
7.4.40.0100.01016.29
7.4.30.0060.01216.63
7.4.00.0030.01015.00
7.3.330.0000.00713.27
7.3.320.0000.00513.07
7.3.310.0030.00316.38
7.3.300.0000.00616.23
7.3.290.0040.00416.14
7.3.280.0090.00816.31
7.3.270.0100.00717.40
7.3.260.0100.01016.58
7.3.250.0130.00516.28
7.3.240.0080.01216.41
7.3.230.0120.01116.39
7.3.210.0160.00716.41
7.3.200.0030.01316.24
7.3.190.0030.01316.39
7.3.180.0130.00616.24
7.3.170.0160.00816.38
7.3.160.0070.01016.57
7.3.120.0090.00914.86
7.3.110.0140.00314.90
7.3.100.0100.00615.07
7.3.90.0110.00314.73
7.3.80.0070.00714.63
7.3.70.0070.00714.84
7.3.60.0040.01114.88
7.3.50.0000.00914.92
7.3.40.0070.00714.68
7.3.30.0100.00314.89
7.3.20.0070.00416.72
7.3.10.0080.00816.63
7.3.00.0110.00316.45
7.2.330.0030.01416.61
7.2.320.0110.00616.57
7.2.310.0060.01116.59
7.2.300.0110.00716.75
7.2.290.0150.00416.82
7.2.250.0100.01015.00
7.2.240.0080.01115.23
7.2.230.0070.01115.23
7.2.220.0030.01415.07
7.2.210.0070.00715.14
7.2.200.0040.00715.14
7.2.190.0060.00914.93
7.2.180.0080.00814.96
7.2.170.0060.01014.97
7.2.60.0100.00316.96
7.2.00.0070.01019.56
7.1.330.0090.00615.66
7.1.320.0000.01815.91
7.1.310.0030.01115.93
7.1.300.0060.00915.57
7.1.290.0040.00415.59
7.1.280.0120.00015.80
7.1.270.0070.00715.87
7.1.260.0030.01016.00
7.1.200.0120.00915.66
7.1.70.0030.00917.19
7.1.60.0060.00619.90
7.1.00.0100.07022.33
7.0.200.1530.00714.54
7.0.70.0170.06019.88
7.0.60.0230.05320.04
7.0.50.0200.06320.36
7.0.40.0130.06320.39
7.0.30.0130.07020.42
7.0.20.0200.06320.34
7.0.10.0300.05320.31
7.0.00.0370.04320.32
5.6.280.0070.07020.98
5.6.220.0270.04720.63
5.6.210.0200.05320.66
5.6.200.0130.06321.16
5.6.190.0170.06321.05
5.6.180.0130.06721.08
5.6.170.0170.06721.02
5.6.160.0200.05721.08
5.6.150.0170.06021.04
5.6.140.0130.05721.16
5.6.130.0100.06321.00
5.6.120.0100.06021.09
5.6.110.0170.06021.11
5.6.100.0270.07021.02
5.6.90.0500.04720.97
5.6.80.0470.05720.51
5.6.70.0330.05720.50
5.6.60.0400.07020.38
5.6.50.0430.05020.36
5.6.40.0330.05720.45
5.6.30.0370.05320.48
5.6.20.0270.06320.35
5.6.10.0400.05020.33
5.6.00.0200.08020.32
5.5.360.0200.05320.58
5.5.350.0230.05320.38
5.5.340.0030.07020.87
5.5.330.0400.06720.73
5.5.320.0100.07320.79
5.5.310.0270.06020.88
5.5.300.0200.05720.88
5.5.290.0270.05020.68
5.5.280.0100.06020.91
5.5.270.0400.04720.91
5.5.260.0400.06320.82
5.5.250.0370.05320.73
5.5.240.0370.06320.12
5.5.230.0370.05320.35
5.5.220.0430.05320.07
5.5.210.0370.05720.27
5.5.200.0400.05020.24
5.5.190.0370.05020.09
5.5.180.0370.05320.24
5.5.160.0230.05020.30
5.5.150.0130.05320.30
5.5.140.0170.05320.32
5.5.130.0470.05020.15
5.5.120.0170.05720.20
5.5.110.0130.06020.20
5.5.100.0170.05720.11
5.5.90.0170.06720.11
5.5.80.0270.04720.10
5.5.70.0200.05320.16
5.5.60.0270.05320.00
5.5.50.0270.04320.07
5.5.40.0100.06020.13
5.5.30.0170.05720.14
5.5.20.0170.05719.98
5.5.10.0170.05720.17
5.5.00.0170.08320.10

preferences:
61.11 ms | 401 KiB | 5 Q