3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 0=>1 , 1=>'Jon', 2=>'jon@email.com' , 3=>2 , 4=>'Doe' , 5=>'doe@email.com' , 6=>3, 7=>'Foo' , 8=>'foo@email.com', ]; $array=array_map(function($val){ return array_combine(['id','name','email'],$val);}, array_chunk($array,3)); var_dump($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.5.10.0110.00716.74
8.5.00.0150.00721.82
8.4.160.0130.00922.82
8.4.150.0030.00014.05
8.4.140.0120.01117.64
8.4.130.0110.00917.64
8.4.120.0120.00720.69
8.4.110.0120.00722.38
8.4.100.0100.01017.27
8.4.90.0030.00620.37
8.4.80.0110.00818.98
8.4.70.0040.00620.52
8.4.60.0050.00418.89
8.4.50.0110.00922.51
8.4.40.0030.01319.41
8.4.30.0100.01017.63
8.4.20.0070.01320.75
8.4.10.0100.01017.79
8.3.290.0110.00920.72
8.3.280.0130.01018.35
8.3.270.0060.01416.57
8.3.260.0130.00616.36
8.3.250.0110.00818.83
8.3.240.0100.01016.99
8.3.230.0120.00616.52
8.3.220.0090.00818.76
8.3.210.0140.00518.32
8.3.200.0060.00316.53
8.3.190.0130.00917.05
8.3.180.0110.00718.68
8.3.170.0160.00316.37
8.3.160.0120.00616.98
8.3.150.0120.00617.18
8.3.140.0080.00017.23
8.3.130.0160.00018.38
8.3.120.0030.00620.70
8.3.110.0030.00620.94
8.3.100.0000.00924.06
8.3.90.0000.00726.77
8.3.80.0030.00617.97
8.3.70.0140.00716.48
8.3.60.0100.01018.02
8.3.50.0150.00018.30
8.3.40.0140.00318.54
8.3.30.0150.00018.72
8.3.20.0030.00518.28
8.3.10.0080.00021.73
8.3.00.0040.00421.78
8.2.300.0120.01120.28
8.2.290.0100.00816.41
8.2.280.0050.01018.06
8.2.270.0070.01118.46
8.2.260.0070.01116.67
8.2.250.0080.00018.25
8.2.240.0040.00417.12
8.2.230.0100.01022.58
8.2.220.0030.00637.54
8.2.210.0000.00726.77
8.2.200.0030.00716.50
8.2.190.0070.00716.58
8.2.180.0100.01018.41
8.2.170.0110.00422.96
8.2.160.0100.00319.41
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0090.00919.67
8.2.110.0060.00322.29
8.2.100.0090.00317.91
8.2.90.0000.00917.91
8.2.80.0060.00317.97
8.2.70.0000.00818.04
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0030.00521.02
8.2.30.0000.00720.63
8.2.20.0040.00418.10
8.2.10.0020.00518.10
8.2.00.0000.00919.53
8.1.340.0120.01017.48
8.1.330.0100.00922.00
8.1.320.0120.00717.77
8.1.310.0000.00818.45
8.1.300.0000.00820.18
8.1.290.0100.00030.84
8.1.280.0090.00625.92
8.1.270.0040.00423.76
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00023.80
8.1.230.0070.00319.21
8.1.220.0040.00417.74
8.1.210.0080.00418.77
8.1.200.0040.00717.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0090.00018.50
8.1.160.0050.00318.95
8.1.150.0080.00018.90
8.1.140.0040.00418.89
8.1.130.0000.01020.14
8.1.120.0040.00317.44
8.1.110.0030.00917.44
8.1.100.0000.00717.41
8.1.90.0060.00317.47
8.1.80.0040.00717.46
8.1.70.0000.00717.34
8.1.60.0000.00917.56
8.1.50.0030.00917.40
8.1.40.0020.00517.42
8.1.30.0060.00317.48
8.1.20.0020.00517.63
8.1.10.0000.00717.49
8.1.00.0000.00817.28
8.0.300.0040.00419.82
8.0.290.0050.00216.58
8.0.280.0030.00718.34
8.0.270.0050.00216.75
8.0.260.0040.00418.34
8.0.250.0070.00016.76
8.0.240.0050.00316.86
8.0.230.0040.00416.77
8.0.220.0030.00316.80
8.0.210.0040.00416.80
8.0.200.0030.00316.97
8.0.190.0060.00316.94
8.0.180.0080.00016.90
8.0.170.0030.00616.80
8.0.160.0030.00316.99
8.0.150.0080.00016.82
8.0.140.0030.00316.78
8.0.130.0060.00013.31
8.0.120.0040.00416.94
8.0.110.0000.00716.89
8.0.100.0030.00516.75
8.0.90.0050.00216.72
8.0.80.0100.01216.90
8.0.70.0030.00516.87
8.0.60.0040.00416.76
8.0.50.0050.00216.86
8.0.30.0130.00717.07
8.0.20.0110.00917.40
8.0.10.0000.00716.89
8.0.00.0100.00716.80
7.4.330.0060.00015.55
7.4.320.0060.00016.60
7.4.300.0040.00416.50
7.4.290.0000.00716.49
7.4.280.0030.00616.48
7.4.270.0000.00716.59
7.4.260.0030.00716.56
7.4.250.0000.00716.46
7.4.240.0070.00016.55
7.4.230.0070.00016.40
7.4.220.0030.00616.57
7.4.210.0020.01316.57
7.4.200.0000.00716.41
7.4.160.0090.00816.59
7.4.140.0120.01017.86
7.4.130.0120.00616.43
7.4.120.0110.01116.40
7.4.110.0000.01716.52
7.4.100.0130.01016.60
7.4.90.0130.00516.65
7.4.80.0110.00719.39
7.4.70.0120.00616.49
7.4.60.0120.00916.46
7.4.50.0170.00016.27
7.4.40.0140.00316.54
7.4.10.0090.00916.54
7.4.00.0050.01215.65
7.3.330.0000.00513.23
7.3.320.0000.00613.16
7.3.310.0000.00716.27
7.3.300.0030.00316.30
7.3.290.0000.00716.11
7.3.280.0050.01016.21
7.3.260.0120.00716.25
7.3.240.0100.00916.40
7.3.230.0040.01516.36
7.3.210.0130.01016.30
7.3.200.0110.00816.28
7.3.190.0070.01016.27
7.3.180.0100.00716.56
7.3.170.0070.01016.27
7.3.160.0090.00816.42
7.3.130.0030.01716.32
7.3.120.0070.01016.38
7.3.110.0070.00715.89
7.3.100.0000.01516.33
7.3.90.0110.00416.00
7.3.80.0060.00916.12
7.3.70.0110.00716.22
7.3.60.0140.00016.19
7.3.50.0090.00316.31
7.3.40.0040.01116.16
7.3.30.0040.01216.04
7.3.20.0070.01118.05
7.3.10.0000.01418.08
7.3.00.0060.00317.98
7.2.330.0150.00916.66
7.2.320.0070.01016.42
7.2.310.0090.00916.65
7.2.300.0070.01016.50
7.2.290.0060.01216.32
7.2.260.0120.00316.48
7.2.250.0120.00916.45
7.2.240.0080.01216.48
7.2.230.0090.00616.17
7.2.220.0150.00016.45
7.2.210.0030.01316.63
7.2.200.0040.00816.34
7.2.190.0090.00916.39
7.2.180.0030.00716.41
7.2.170.0070.01016.36
7.2.160.0070.01116.40
7.2.150.0030.00718.43
7.2.140.0070.00718.41
7.2.130.0070.01018.35
7.2.120.0070.01318.38
7.2.110.0070.00418.26
7.2.100.1780.00516.46
7.2.90.1490.00316.40
7.2.80.1460.00816.54
7.2.70.1450.00216.67
7.2.60.1430.00916.62
7.2.50.1150.00916.66
7.2.40.1240.00916.53
7.2.30.1290.00616.53
7.2.20.1250.01016.69
7.2.10.1270.01016.62
7.2.00.1340.00216.48
7.1.330.0070.00717.24
7.1.320.0000.01717.43
7.1.310.0070.00717.56
7.1.300.0120.00317.35
7.1.290.0000.01317.37
7.1.280.0140.00317.22
7.1.270.0070.00717.32
7.1.260.0000.00917.21
7.1.250.0000.01717.27
7.1.240.0030.01617.15
7.1.230.0040.00417.14
7.1.220.2770.01015.44
7.1.210.1660.01215.48
7.1.200.1420.00915.36
7.1.190.1230.01415.55
7.1.180.1180.00615.44
7.1.170.1560.00815.47
7.1.160.1160.00515.40
7.1.150.1240.00515.50
7.1.140.1420.00615.52
7.1.130.1330.00715.71
7.1.120.1340.00615.48
7.1.110.1530.00915.53
7.1.100.1390.00815.41
7.1.90.1310.00815.68
7.1.80.1340.01015.57
7.1.70.1610.00715.58
7.1.60.1490.00324.40
7.1.50.2080.01024.47
7.1.40.1990.01224.37
7.1.30.2060.00324.41
7.1.20.1720.00724.32
7.1.10.1500.00615.49
7.1.00.1490.00815.49
7.0.330.0070.00716.84
7.0.320.0040.00816.77
7.0.310.0030.01016.88
7.0.300.0100.00016.64
7.0.290.0030.00616.88
7.0.280.0000.01216.95
7.0.270.0000.01516.82
7.0.260.0030.00716.70
7.0.250.0040.01216.80
7.0.240.0060.00616.84
7.0.230.0040.01116.98
7.0.220.0040.01216.89
7.0.210.0040.01117.02
7.0.200.0030.00716.82
7.0.190.0030.01016.86
7.0.180.0080.00816.84
7.0.170.0130.00317.04
7.0.160.0130.00016.79
7.0.150.0060.00616.95
7.0.140.0060.01217.15
7.0.130.0070.00716.89
7.0.120.0070.00716.91
7.0.110.0070.00716.89
7.0.100.0070.00716.93
7.0.90.0040.00816.68
7.0.80.0090.00616.88
7.0.70.0040.00816.98
7.0.60.0090.00616.75
7.0.50.0130.00316.98
7.0.40.0070.00714.84
7.0.30.0070.01114.78
7.0.20.0140.00714.88
7.0.10.0030.01614.89
7.0.00.0110.00714.93
5.6.400.0130.00015.68
5.6.390.0070.00715.58
5.6.380.0030.01015.96
5.6.370.0030.00715.66
5.6.360.0000.00915.73
5.6.350.0100.00315.77
5.6.340.0060.00915.83
5.6.330.0070.00715.92
5.6.320.0000.01815.46
5.6.310.0080.00415.50
5.6.300.0060.01016.04
5.6.290.0000.01216.09
5.6.280.0100.00615.58
5.6.270.0030.00715.95
5.6.260.0030.00915.57
5.6.250.0040.01215.73
5.6.240.0070.01015.65
5.6.230.0070.00715.72
5.6.220.0030.01015.83
5.6.210.0060.00615.82
5.6.200.0120.00315.71
5.6.190.0130.00715.73
5.6.180.0090.00915.74
5.6.170.0110.00615.71
5.6.160.0090.00615.75
5.6.150.0090.00915.70
5.6.140.0000.01515.59
5.6.130.0070.00715.61
5.6.120.0030.01315.72
5.6.110.0030.01315.73
5.6.100.0070.01115.79
5.6.90.0100.01315.75
5.6.80.0080.00815.63
5.6.70.0130.00915.67
5.6.60.0100.00715.52
5.6.50.0140.00715.68
5.6.40.0090.00915.93
5.6.30.0100.00615.56
5.6.20.0080.00815.73
5.6.10.0090.00615.70
5.6.00.0040.00715.62

preferences:
34.15 ms | 403 KiB | 5 Q