3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [ [ "Phone", "Sum", "Name", "Something else" ], [ "+1 555123456", "50.00", "John doe", "100.50" ], [ "911", "20.12", "Eli the Computer Guy", "99.99" ] ]; $headers = array_shift($arrays); $result = array_map(function($x) use ($headers){ return array_combine($headers, $x); }, $arrays); print_r($result);

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.00.0190.00619.90
8.4.150.0020.00114.05
8.4.140.0110.01117.35
8.4.130.0060.00817.62
8.4.120.0130.00720.64
8.4.110.0130.00622.54
8.4.100.0150.00617.77
8.4.90.0110.00818.55
8.4.80.0150.00517.93
8.4.70.0130.00717.75
8.4.60.0130.00718.54
8.4.50.0080.01120.40
8.4.40.0100.01019.32
8.4.30.0200.00017.68
8.4.20.0040.00818.92
8.4.10.0130.00317.38
8.3.280.0120.00918.40
8.3.270.0120.00716.51
8.3.260.0120.00816.56
8.3.250.0090.01018.92
8.3.240.0110.00916.77
8.3.230.0110.00816.60
8.3.220.0090.01016.95
8.3.210.0070.00216.51
8.3.200.0060.00216.40
8.3.190.0090.01018.93
8.3.180.0110.00816.53
8.3.170.0070.01117.05
8.3.160.0130.00318.45
8.3.150.0160.00316.58
8.3.140.0060.00319.14
8.3.130.0090.00016.50
8.3.120.0050.00320.61
8.3.110.0070.01320.94
8.3.100.0080.00016.62
8.3.90.0110.00416.73
8.3.80.0100.00018.18
8.3.70.0060.00916.47
8.3.60.0120.00318.47
8.3.50.0060.01318.23
8.3.40.0090.00618.84
8.3.30.0090.00618.71
8.3.20.0060.00319.15
8.3.10.0030.00521.69
8.3.00.0080.00020.63
8.2.290.0130.00520.55
8.2.280.0110.00818.28
8.2.270.0100.00717.20
8.2.260.0070.00016.26
8.2.250.0030.00516.46
8.2.240.0120.00318.73
8.2.230.0120.00322.58
8.2.220.0040.01524.06
8.2.210.0100.01026.77
8.2.200.0060.00618.38
8.2.190.0140.00416.58
8.2.180.0140.00718.41
8.2.170.0150.00618.82
8.2.160.0100.00322.96
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.72
8.2.110.0040.00420.18
8.2.100.0060.00617.76
8.2.90.0040.00418.03
8.2.80.0040.00418.04
8.2.70.0040.00418.03
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0040.00421.06
8.2.30.0050.00319.16
8.2.20.0030.00318.19
8.2.10.0040.00418.00
8.2.00.0050.00317.72
8.1.330.0120.00721.95
8.1.320.0130.00616.28
8.1.310.0070.00018.38
8.1.300.0110.00719.86
8.1.290.0030.00618.88
8.1.280.0080.00825.92
8.1.270.0000.00822.05
8.1.260.0140.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00817.36
8.1.230.0040.00722.51
8.1.220.0080.00017.74
8.1.210.0050.00318.97
8.1.200.0030.00617.35
8.1.190.0030.00617.22
8.1.180.0100.00018.10
8.1.170.0040.00418.53
8.1.160.0000.00718.87
8.1.150.0040.00418.77
8.1.140.0070.00022.14
8.1.130.0100.00020.38
8.1.120.0000.00717.38
8.1.110.0030.00517.39
8.1.100.0000.00717.52
8.1.90.0040.00417.46
8.1.80.0000.00817.45
8.1.70.0000.00717.45
8.1.60.0040.00417.62
8.1.50.0020.00617.49
8.1.40.0080.00017.40
8.1.30.0000.00817.64
8.1.20.0000.00717.66
8.1.10.0000.00817.49
8.1.00.0000.00817.47
8.0.300.0090.00019.64
8.0.290.0050.00316.75
8.0.280.0000.00718.49
8.0.270.0040.00416.81
8.0.260.0000.00618.43
8.0.250.0070.00016.97
8.0.240.0050.00316.94
8.0.230.0080.00316.81
8.0.220.0090.00016.86
8.0.210.0000.00716.87
8.0.200.0030.00316.97
8.0.190.0000.00816.90
8.0.180.0050.00216.79
8.0.170.0000.00916.80
8.0.160.0070.00316.78
8.0.150.0000.00716.75
8.0.140.0040.00416.86
8.0.130.0060.00313.32
8.0.120.0000.00716.76
8.0.110.0060.00316.88
8.0.100.0040.00416.75
8.0.90.0030.00316.74
8.0.80.0030.01116.83
8.0.70.0030.00616.85
8.0.60.0040.00416.84
8.0.50.0040.00416.82
8.0.30.0060.01016.95
8.0.20.0100.01217.40
8.0.10.0040.00416.96
8.0.00.0140.00916.60
7.4.330.0050.00015.55
7.4.320.0030.00316.59
7.4.300.0060.00016.53
7.4.290.0000.00716.63
7.4.280.0040.00416.39
7.4.270.0030.00316.50
7.4.260.0080.00016.38
7.4.250.0000.00716.46
7.4.240.0070.00016.62
7.4.230.0030.00316.50
7.4.220.0080.00016.66
7.4.210.0060.00916.61
7.4.200.0050.00216.54
7.4.160.0110.00616.58
7.4.140.0110.00917.86
7.4.130.0080.01116.35
7.4.120.0140.00816.46
7.4.110.0160.00316.36
7.4.100.0120.00616.47
7.4.90.0060.01216.64
7.4.80.0040.01419.39
7.4.70.0130.00416.48
7.4.60.0090.01216.32
7.4.50.0060.00916.52
7.4.40.0070.01116.57
7.4.00.0060.01115.00
7.3.330.0000.00513.27
7.3.320.0060.00013.25
7.3.310.0030.00616.32
7.3.300.0000.00816.17
7.3.290.0040.00416.29
7.3.280.0100.00716.22
7.3.260.0090.01116.32
7.3.240.0100.00716.44
7.3.230.0030.01516.44
7.3.210.0100.00616.21
7.3.200.0060.01016.20
7.3.190.0110.01116.38
7.3.180.0070.01016.55
7.3.170.0060.01216.25
7.3.160.0100.00716.44
7.3.120.0030.01314.72
7.3.110.0070.01014.63
7.3.100.0090.00714.79
7.3.90.0030.00714.75
7.3.80.0030.01214.60
7.3.70.0080.00814.57
7.3.60.0060.00314.82
7.3.50.0090.00514.81
7.3.40.0080.00814.93
7.3.30.0050.00514.82
7.3.20.0060.00816.53
7.3.10.0080.00716.53
7.3.00.0050.00716.46
7.2.330.0110.00716.44
7.2.320.0090.01216.50
7.2.310.0000.01716.61
7.2.300.0060.01016.36
7.2.290.0080.00916.41
7.2.250.0060.01215.09
7.2.240.0100.00814.86
7.2.230.0070.00715.13
7.2.220.0070.00515.00
7.2.210.0030.01015.05
7.2.200.0070.00815.05
7.2.190.0050.01014.81
7.2.180.0070.00914.98
7.2.170.0030.01014.70
7.2.110.0080.00516.23
7.2.100.0050.00816.02
7.2.90.0050.00716.20
7.2.80.0050.00916.13
7.2.70.0070.00716.33
7.2.60.0080.00916.55
7.2.50.0020.01216.66
7.2.40.0120.00316.45
7.2.30.0070.00716.57
7.2.20.0110.00616.50
7.2.10.0000.01516.52
7.2.00.0060.00716.34
7.1.330.0090.00515.70
7.1.320.0020.01015.68
7.1.310.0050.00915.85
7.1.300.0070.00615.87
7.1.290.0050.01015.77
7.1.280.0090.00315.83
7.1.270.0050.00715.73
7.1.260.0100.00515.73
7.1.230.0040.01015.53
7.1.220.0050.00815.65
7.1.210.0040.00715.41
7.1.200.0120.00315.53
7.1.190.0070.00715.22
7.1.180.0080.00415.39
7.1.170.0050.00715.53
7.1.160.0080.00315.32
7.1.150.0090.00715.43
7.1.140.0090.00415.43
7.1.130.0070.00615.36
7.1.120.0080.00815.39
7.1.110.0100.00515.51
7.1.100.0060.00615.58
7.1.90.0080.00515.63
7.1.80.0050.01015.27
7.1.70.0110.00315.64
7.1.60.0250.00933.61
7.1.50.0230.01333.40
7.1.40.0210.01433.50
7.1.30.0220.01233.49
7.1.20.0200.01733.58
7.1.10.0100.00415.49
7.1.00.0040.01015.33
7.0.120.0150.00517.06
7.0.110.0190.00216.87
5.6.380.0110.00413.86

preferences:
66.8 ms | 403 KiB | 5 Q