3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 0 => array('foo' => '1','bar' => 'A'), 1 => array('foo' => '2','bar' => 'B'), 2 => array('foo' => '3','bar' => 'C')); $foo = array_map('array_shift', $arr); $bar = array_map('array_pop', $arr); var_dump($foo,$bar);

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.40.0150.00018.54
8.3.30.0040.01118.71
8.3.20.0000.00820.09
8.3.10.0040.00422.02
8.3.00.0040.00422.34
8.2.170.0070.00722.96
8.2.160.0140.00020.79
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0060.00319.25
8.2.110.0030.00622.11
8.2.100.0110.00017.78
8.2.90.0000.00719.03
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0030.00517.63
8.2.50.0040.00417.92
8.2.40.0080.00017.91
8.2.30.0000.00819.22
8.2.20.0040.00417.70
8.2.10.0020.00517.61
8.2.00.0040.00417.66
8.1.270.0040.00424.01
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.84
8.1.230.0030.00818.91
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0090.00017.23
8.1.180.0000.00818.10
8.1.170.0020.00517.62
8.1.160.0070.00022.72
8.1.150.0040.00418.87
8.1.140.0020.00517.27
8.1.130.0030.00317.77
8.1.120.0080.00017.38
8.1.110.0070.00017.38
8.1.100.0030.00517.34
8.1.90.0030.00617.43
8.1.80.0050.00217.38
8.1.70.0000.00717.27
8.1.60.0000.00817.49
8.1.50.0000.00817.35
8.1.40.0020.00517.30
8.1.30.0040.00417.56
8.1.20.0000.00917.56
8.1.10.0030.00517.47
8.1.00.0030.00517.39
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00718.39
8.0.270.0030.00317.19
8.0.260.0000.00616.79
8.0.250.0000.00816.94
8.0.240.0020.00516.95
8.0.230.0030.00316.91
8.0.220.0030.00316.89
8.0.210.0000.00816.84
8.0.200.0050.00216.79
8.0.190.0040.00416.81
8.0.180.0000.00716.87
8.0.170.0040.00416.93
8.0.160.0000.00816.92
8.0.150.0040.00416.73
8.0.140.0050.00216.87
8.0.130.0060.00013.34
8.0.120.0000.00716.83
8.0.110.0050.00216.67
8.0.100.0010.00616.69
8.0.90.0020.00616.92
8.0.80.0060.00616.95
8.0.70.0020.00516.91
8.0.60.0040.00416.80
8.0.50.0040.00416.84
8.0.30.0060.00917.00
8.0.20.0120.00417.18
8.0.10.0020.00616.98
8.0.00.0050.01016.91
7.4.330.0050.00015.02
7.4.320.0040.00416.44
7.4.300.0030.00316.48
7.4.290.0000.00616.56
7.4.280.0000.00816.55
7.4.270.0030.00316.52
7.4.260.0030.00316.40
7.4.250.0030.00316.24
7.4.240.0050.00216.63
7.4.230.0040.00316.52
7.4.220.0050.00816.31
7.4.210.0000.01116.44
7.4.200.0010.00616.60
7.4.190.0020.00616.36
7.4.180.0000.00716.63
7.4.160.0060.00816.43
7.4.150.0070.00716.87
7.4.140.0130.01617.36
7.4.130.0090.00516.41
7.4.120.0090.00516.29
7.4.110.0050.00716.43
7.4.100.0050.00816.41
7.4.90.0090.00316.33
7.4.80.0050.00917.86
7.4.70.0060.00616.31
7.4.60.0080.00516.31
7.4.50.0000.00616.24
7.4.40.0030.00819.60
7.4.30.0060.00516.39
7.4.20.0000.00716.48
7.4.10.0040.00416.23
7.4.00.0030.00815.58
7.3.330.0000.00512.83
7.3.320.0020.00212.92
7.3.310.0070.00016.16
7.3.300.0020.00516.14
7.3.290.0060.00616.10
7.3.280.0050.01116.12
7.3.270.0110.00516.77
7.3.260.0090.00516.28
7.3.250.0130.00216.30
7.3.240.0080.00316.05
7.3.230.0050.00716.26
7.3.220.0040.00416.10
7.3.210.0030.00916.16
7.3.200.0090.00316.18
7.3.190.0050.00816.01
7.3.180.0030.00816.16
7.3.170.0050.00716.17
7.3.160.0050.00816.10
7.3.150.0000.00716.05
7.3.140.0000.00715.96
7.3.130.0040.00416.09
7.3.120.0030.00415.34
7.3.110.0000.00716.02
7.3.100.0000.00716.02
7.3.90.0030.00316.37
7.3.80.0050.00316.11
7.3.70.0040.00416.15
7.3.60.0000.00716.22
7.3.50.0040.00416.22
7.3.40.0000.00716.26
7.3.30.0030.00316.21
7.3.20.0000.00718.05
7.3.10.0080.00018.00
7.3.00.0030.00318.04
7.2.340.0080.00816.07
7.2.330.0140.00316.38
7.2.320.0080.00816.21
7.2.310.0080.00816.37
7.2.300.0150.00516.33
7.2.290.0090.00716.39
7.2.280.0130.00016.03
7.2.270.0030.00616.17
7.2.260.0050.00516.16
7.2.250.0000.00816.04
7.2.240.0060.00316.21
7.2.230.0030.00616.23
7.2.220.0000.00816.11
7.2.210.0080.00016.21
7.2.200.0090.00016.36
7.2.190.0040.00416.34
7.2.180.0040.00416.36
7.2.170.0000.00816.23
7.2.160.0080.00016.42
7.2.150.0030.00618.18
7.2.140.0030.00618.23
7.2.130.0110.00018.46
7.2.120.0060.00318.38
7.2.110.0070.00418.37
7.2.100.0050.00518.23
7.2.90.0040.00418.22
7.2.80.0030.00718.28
7.2.70.0040.00418.31
7.2.60.0060.00717.39
7.2.50.0030.00618.21
7.2.40.0020.00718.32
7.2.30.0050.00518.32
7.2.20.0030.00718.41
7.2.10.0040.00418.25
7.2.00.0040.00718.76
7.1.330.0100.00317.36
7.1.320.0050.00517.39
7.1.310.0000.00817.33
7.1.300.0070.00017.39
7.1.290.0040.00417.34
7.1.280.0000.00917.28
7.1.270.0040.00417.27
7.1.260.0000.00917.30
7.1.250.0000.00817.20
7.1.240.0020.00617.19
7.1.230.0090.00017.25
7.1.220.0050.00517.25
7.1.210.0090.00017.14
7.1.200.0000.01216.33
7.1.190.0040.00417.27
7.1.180.0000.00817.11
7.1.170.0080.00017.27
7.1.160.0040.00417.19
7.1.150.0080.00017.17
7.1.140.0070.00217.21
7.1.130.0070.00317.25
7.1.120.0060.00617.20
7.1.110.0040.00817.15
7.1.100.0310.01116.51
7.1.90.0120.00317.23
7.1.80.0100.00317.16
7.1.70.0070.00216.87
7.1.60.0140.00518.43
7.1.50.0110.00116.98
7.1.40.0000.01017.24
7.1.30.0110.00017.17
7.1.20.0070.00417.25
7.1.10.0080.00417.17
7.1.00.0030.04119.71
7.0.330.0070.00416.83
7.0.320.0060.00516.77
7.0.310.0110.00016.72
7.0.300.0110.00316.97
7.0.290.0070.00516.94
7.0.280.0110.00016.95
7.0.270.0040.00816.90
7.0.260.0030.00716.92
7.0.250.0120.00017.04
7.0.240.0100.00016.82
7.0.230.0080.00216.89
7.0.220.0050.00516.90
7.0.210.0050.00516.72
7.0.200.0050.00716.84
7.0.190.0060.00316.89
7.0.180.0080.00316.75
7.0.170.0000.00816.98
7.0.160.0050.00516.96
7.0.150.0100.00216.80
7.0.140.0050.03819.47
7.0.130.0090.00517.03
7.0.120.0110.00016.78
7.0.110.0090.00316.92
7.0.100.0050.04518.43
7.0.90.0030.04718.39
7.0.80.0080.03918.38
7.0.70.0050.04218.37
7.0.60.0070.04218.32
7.0.50.0300.04418.59
7.0.40.0000.04718.58
7.0.30.0050.04318.56
7.0.20.0020.03318.41
7.0.10.0060.03018.51
7.0.00.0100.03818.51
5.6.400.0040.00415.75
5.6.390.0070.00015.75
5.6.380.0000.00715.62
5.6.370.0030.00315.64
5.6.360.0000.00815.59
5.6.350.0000.00715.56
5.6.340.0070.00015.56
5.6.330.0050.00215.64
5.6.320.0000.00715.52
5.6.310.0000.00715.77
5.6.300.0000.00715.56
5.6.290.0070.00015.77
5.6.280.0030.03918.30
5.6.270.0040.00415.59
5.6.260.0050.00315.58
5.6.250.0020.02918.11
5.6.240.0160.03718.17
5.6.230.0080.04018.24
5.6.220.0030.04218.21
5.6.210.0070.03818.32
5.6.200.0070.04318.57
5.6.190.0050.04718.33
5.6.180.0070.04018.44
5.6.170.0030.03118.45
5.6.160.0120.03318.42
5.6.150.0070.04018.44
5.6.140.0100.03818.44
5.6.130.0050.04218.41
5.6.120.0070.04118.39
5.6.110.0050.04318.41
5.6.100.0060.02118.37
5.6.90.0050.04218.32
5.6.80.0030.03718.10
5.6.70.0050.03818.03
5.6.60.0050.04118.14
5.6.50.0020.04418.08
5.6.40.0020.02718.14
5.6.30.0050.04218.03
5.6.20.0030.02918.02
5.6.10.0020.02418.00
5.6.00.0090.03618.01
5.5.380.0030.04318.18
5.5.370.0080.03917.96
5.5.360.0050.04518.11
5.5.350.0070.04018.01
5.5.340.0050.04218.25
5.5.330.0050.04518.24
5.5.320.0020.04718.21
5.5.310.0090.03818.16
5.5.300.0090.04118.10
5.5.290.0080.03818.21
5.5.280.0050.04218.19
5.5.270.0100.04018.27
5.5.260.0080.04018.28
5.5.250.0040.04318.07
5.5.240.0020.04317.95
5.5.230.0070.03817.93
5.5.220.0040.04417.87
5.5.210.0060.03517.98
5.5.200.0030.04317.83
5.5.190.0050.03717.83
5.5.180.0030.04217.86
5.5.170.0050.00215.54
5.5.160.0050.03817.82
5.5.150.0050.04017.84
5.5.140.0120.02817.86
5.5.130.0080.04017.82
5.5.120.0020.03817.78
5.5.110.0040.02617.79
5.5.100.0010.04617.88
5.5.90.0080.03717.78
5.5.80.0050.02617.85
5.5.70.0040.04017.96
5.5.60.0090.03017.85
5.5.50.0050.04017.73
5.5.40.0030.04117.78
5.5.30.0030.04417.80
5.5.20.0060.02917.82
5.5.10.0020.04217.84
5.5.00.0080.03817.66
5.4.450.0050.02315.97
5.4.440.0100.02216.07
5.4.430.0030.04115.91
5.4.420.0050.04115.97
5.4.410.0050.04115.83
5.4.400.0000.04315.75
5.4.390.0030.04115.75
5.4.380.0080.03015.75
5.4.370.0030.03815.76
5.4.360.0020.04415.73
5.4.350.0020.04215.65
5.4.340.0050.04015.58
5.4.330.0000.00512.52
5.4.320.0000.02915.79
5.4.310.0030.04115.75
5.4.300.0060.03815.63
5.4.290.0060.04015.75
5.4.280.0050.03615.70
5.4.270.0000.04115.61
5.4.260.0030.03815.68
5.4.250.0100.02015.82
5.4.240.0080.03515.69
5.4.230.0050.03415.72
5.4.220.0080.03515.47
5.4.210.0060.02315.63
5.4.200.0100.03315.67
5.4.190.0050.03715.74
5.4.180.0060.03515.63
5.4.170.0100.03615.54
5.4.160.0040.04015.60
5.4.150.0050.03615.63
5.4.140.0020.04314.31
5.4.130.0030.04114.37
5.4.120.0050.03814.38
5.4.110.0050.03114.40
5.4.100.0050.03514.38
5.4.90.0080.03614.38
5.4.80.0020.04114.46
5.4.70.0030.03614.42
5.4.60.0060.03514.34
5.4.50.0040.03714.29
5.4.40.0050.03814.40
5.4.30.0030.02614.46
5.4.20.0030.03914.38
5.4.10.0110.02214.45
5.4.00.0010.03114.04
5.3.290.0060.02513.76
5.3.280.0050.03813.78
5.3.270.0060.04013.71
5.3.260.0030.03813.78
5.3.250.0030.04113.75
5.3.240.0080.03713.65
5.3.230.0060.02313.68
5.3.220.0050.03413.70
5.3.210.0080.02013.67
5.3.200.0060.02313.54
5.3.190.0030.03913.61
5.3.180.0030.04113.79
5.3.170.0080.03113.73
5.3.160.0050.03913.63
5.3.150.0060.02313.63
5.3.140.0030.04113.63
5.3.130.0040.03713.77
5.3.120.0050.04013.73
5.3.110.0080.03513.67
5.3.100.0060.03813.34
5.3.90.0030.03613.47
5.3.80.0080.03613.43
5.3.70.0070.03413.33
5.3.60.0080.03513.49
5.3.50.0050.03813.38
5.3.40.0030.03413.39
5.3.30.0060.02813.37
5.3.20.0090.02713.16
5.3.10.0030.03613.01
5.3.00.0050.03613.11

preferences:
70.28 ms | 400 KiB | 5 Q