3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["foo" => "bar1", "hey" => "now"], ["foo" => "bar2", "hey" => "what"], [0 => "zero", 1 => "one"] ]; var_export(array_map('current', $array));

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.4.140.0120.00917.32
8.4.130.0130.00817.61
8.4.120.0090.01120.55
8.4.110.0080.01222.38
8.4.100.0110.01018.23
8.4.90.0110.01018.57
8.4.80.0070.00218.77
8.4.70.0110.01017.96
8.4.60.0150.00817.51
8.4.50.0140.00817.69
8.4.40.0160.00419.54
8.4.30.0110.00720.36
8.4.20.0140.00619.66
8.4.10.0090.00023.61
8.3.270.0140.00516.59
8.3.260.0140.00516.71
8.3.250.0100.00818.75
8.3.240.0040.00417.36
8.3.230.0120.00716.40
8.3.220.0020.00618.88
8.3.210.0120.00816.72
8.3.200.0060.01216.38
8.3.190.0100.00516.29
8.3.180.0070.00816.22
8.3.170.0130.00618.95
8.3.160.0060.01316.54
8.3.150.0140.00020.49
8.3.140.0000.00816.95
8.3.130.0000.00818.39
8.3.120.0000.00920.59
8.3.110.0130.00620.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0060.00318.43
8.3.70.0120.00316.58
8.3.60.0150.00416.32
8.3.50.0040.01118.07
8.3.40.0070.00719.96
8.3.30.0140.00418.63
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.290.0110.00820.64
8.2.280.0120.00616.63
8.2.270.0100.01017.16
8.2.260.0000.00818.67
8.2.250.0040.00716.60
8.2.240.0060.00316.92
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0140.00026.77
8.2.200.0080.00016.38
8.2.190.0070.00716.63
8.2.180.0040.01425.92
8.2.170.0070.00718.96
8.2.160.0110.01122.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0070.00021.18
8.2.110.0030.00722.27
8.2.100.0090.00317.78
8.2.90.0000.00817.84
8.2.80.0080.00019.10
8.2.70.0080.00017.50
8.2.60.0080.00317.63
8.2.50.0050.00318.07
8.2.40.0000.00821.10
8.2.30.0050.00218.13
8.2.20.0050.00219.15
8.2.10.0070.00018.05
8.2.00.0070.00418.69
8.1.330.0120.00621.69
8.1.320.0130.00517.75
8.1.310.0050.00318.61
8.1.300.0040.00418.23
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0000.00822.15
8.1.230.0000.01220.89
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0080.00017.36
8.1.190.0060.00317.22
8.1.180.0080.00418.88
8.1.170.0000.00918.50
8.1.160.0060.00318.87
8.1.150.0040.00418.57
8.1.140.0000.00917.43
8.1.130.0120.00418.50
8.1.120.0080.00818.57
8.1.110.0130.00218.58
8.1.100.0110.00418.59
8.1.90.0030.00918.63
8.1.80.0110.00418.55
8.1.70.0110.00518.60
8.1.60.0100.00818.77
8.1.50.0110.00818.57
8.1.40.0130.00218.63
8.1.30.0060.00618.73
8.1.20.0130.00418.80
8.1.10.0080.01218.55
8.1.00.0150.00218.51
8.0.300.0070.00020.09
8.0.290.0030.00616.63
8.0.280.0030.00318.28
8.0.270.0040.00417.84
8.0.260.0090.00617.94
8.0.250.0140.00217.89
8.0.240.0090.00318.05
8.0.230.0060.00917.96
8.0.220.0110.00317.99
8.0.210.0060.00617.92
8.0.200.0050.00917.86
8.0.190.0000.01117.83
8.0.180.0080.00817.87
8.0.170.0070.00717.83
8.0.160.0070.00717.91
8.0.150.0070.00717.88
8.0.140.0110.00517.99
8.0.130.0110.00417.87
8.0.120.0120.00017.87
8.0.110.0130.00017.77
8.0.100.0120.00017.91
8.0.90.0100.00717.98
8.0.80.0110.00417.91
8.0.70.0090.00417.82
8.0.60.0110.00317.94
8.0.50.0150.00317.87
8.0.30.0170.00017.86
8.0.20.0110.00518.04
8.0.10.0100.00517.93

preferences:
30.35 ms | 403 KiB | 5 Q