3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handlers = array( array('ids' => array(1, 2, 3)), array('ids' => array(4, 5, 6)), array('ids' => array(7, 8, 9)), ); $ids = array(); foreach ($handlers as $handler) { $ids += $handler['ids']; } var_dump($ids);

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.0120.00316.50
8.3.50.0130.00522.05
8.3.40.0120.00318.73
8.3.30.0100.00719.09
8.3.20.0040.00420.20
8.3.10.0000.00823.42
8.3.00.0030.00520.93
8.2.180.0150.00616.75
8.2.170.0070.00722.96
8.2.160.0110.00420.43
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0030.00619.36
8.2.110.0100.00022.19
8.2.100.0110.00020.54
8.2.90.0050.00219.36
8.2.80.0040.00417.97
8.2.70.0090.00017.75
8.2.60.0000.01018.05
8.2.50.0000.00918.07
8.2.40.0040.00419.74
8.2.30.0000.00718.31
8.2.20.0080.00017.71
8.2.10.0040.00418.08
8.2.00.0000.00819.57
8.1.280.0140.00025.92
8.1.270.0050.00323.84
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00621.87
8.1.230.0070.00419.03
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.13
8.1.180.0000.00718.10
8.1.170.0040.00418.64
8.1.160.0040.00421.98
8.1.150.0000.00718.49
8.1.140.0040.00417.43
8.1.130.0000.00717.69
8.1.120.0030.00617.39
8.1.110.0000.00817.41
8.1.100.0050.00217.42
8.1.90.0000.00717.43
8.1.80.0040.00417.44
8.1.70.0070.00017.37
8.1.60.0070.00417.54
8.1.50.0050.00517.36
8.1.40.0090.00017.48
8.1.30.0030.00517.68
8.1.20.0060.00317.62
8.1.10.0030.00517.57
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0070.00016.88
8.0.280.0030.00318.49
8.0.270.0050.00317.12
8.0.260.0040.00417.18
8.0.250.0030.00317.05
8.0.240.0030.00317.02
8.0.230.0030.00316.99
8.0.220.0040.00416.99
8.0.210.0020.00516.83
8.0.200.0040.00416.89
8.0.190.0070.00016.89
8.0.180.0070.00316.99
8.0.170.0000.00817.01
8.0.160.0030.00317.07
8.0.150.0050.00316.95
8.0.140.0040.00416.88
8.0.130.0040.00413.38
8.0.120.0030.00516.80
8.0.110.0050.00216.92
8.0.100.0050.00316.98
8.0.90.0000.00716.85
8.0.80.0100.01016.91
8.0.70.0080.00016.91
8.0.60.0040.00416.93
8.0.50.0000.00716.95
8.0.30.0130.00717.19
8.0.20.0110.00717.40
8.0.10.0040.00417.00
8.0.00.0120.00516.73
7.4.330.0030.00315.11
7.4.320.0060.00016.63
7.4.300.0060.00016.63
7.4.290.0000.00716.60
7.4.280.0070.00016.47
7.4.270.0030.00316.39
7.4.260.0000.00816.58
7.4.250.0040.00416.45
7.4.240.0050.00316.58
7.4.230.0070.00016.32
7.4.220.0030.01316.36
7.4.210.0040.01116.62
7.4.200.0000.00716.68
7.4.160.0130.00316.26
7.4.150.0120.00617.40
7.4.140.0120.00617.86
7.4.130.0070.00916.66
7.4.120.0090.01016.46
7.4.110.0090.01516.48
7.4.100.0040.01816.41
7.4.90.0000.01716.42
7.4.80.0120.00919.39
7.4.70.0110.00716.23
7.4.60.0100.00716.73
7.4.50.0030.00616.42
7.4.40.0120.01216.53
7.4.30.0100.00616.18
7.4.00.0100.00715.21
7.3.330.0050.00013.21
7.3.320.0030.00313.24
7.3.310.0070.00016.19
7.3.300.0000.00716.34
7.3.290.0000.01416.28
7.3.280.0100.00916.29
7.3.270.0130.00317.40
7.3.260.0130.01016.52
7.3.250.0040.01416.29
7.3.240.0080.01216.62
7.3.230.0040.01816.39
7.3.210.0060.01016.39
7.3.200.0070.01016.27
7.3.190.0060.01816.28
7.3.180.0100.00716.31
7.3.170.0160.00416.30
7.3.160.0100.01416.38
7.3.120.0070.01014.82
7.3.110.0070.00714.94
7.3.100.0030.01014.61
7.3.90.0040.01414.98
7.3.80.0030.01014.91
7.3.70.0040.01115.03
7.3.60.0130.00314.57
7.3.50.0090.00314.88
7.3.40.0040.00814.81
7.3.30.0070.01014.69
7.3.20.0060.00616.50
7.3.10.0040.01116.64
7.3.00.0060.00916.42
7.2.330.0060.01016.56
7.2.320.0030.01316.61
7.2.310.0120.00416.71
7.2.300.0070.01016.44
7.2.290.0100.00616.73
7.2.240.0030.01014.99
7.2.230.0070.00715.02
7.2.220.0070.01015.25
7.2.210.0080.00414.72
7.2.200.0090.00615.14
7.2.190.0030.01015.10
7.2.180.0030.01415.03
7.2.170.0090.00615.19
7.2.160.0040.00815.15
7.2.150.0060.00817.12
7.2.140.0070.00717.16
7.2.130.0100.00516.95
7.2.120.0070.00916.86
7.2.110.0040.00816.90
7.2.100.0100.00317.03
7.2.90.0070.01116.83
7.2.80.0050.00517.11
7.2.70.0060.01317.07
7.2.60.0070.00616.82
7.2.50.0110.00616.93
7.2.40.0030.00916.98
7.2.30.0030.01217.04
7.2.20.0110.00316.85
7.2.10.0080.00816.83
7.2.00.0070.00917.63
7.1.330.0140.00015.92
7.1.320.0100.00716.00
7.1.310.0080.00815.93
7.1.300.0060.00615.80
7.1.290.0130.00315.80
7.1.280.0000.01615.47
7.1.270.0070.00815.77
7.1.260.0000.01416.02
7.1.250.0060.00515.61
7.1.200.0040.00815.96
7.1.100.0070.01118.07
7.1.70.0070.00717.10
7.1.60.0140.00319.70
7.1.50.0090.01216.96
7.1.00.0000.08022.44
7.0.200.0000.01116.56
7.0.140.0000.07322.02
7.0.60.0170.03319.87
7.0.50.0100.05317.86
7.0.40.0170.07320.04
7.0.30.0470.07320.17
7.0.20.0230.08720.19
7.0.10.0100.04720.00
7.0.00.0030.08719.96
5.6.280.0000.07720.91
5.6.210.0000.04320.60
5.6.200.0000.05018.22
5.6.190.0030.04720.64
5.6.180.0330.04720.24
5.6.170.0400.07320.71
5.6.160.0000.08720.44
5.6.150.0070.07318.21
5.6.140.0100.07018.17
5.6.130.0000.04718.22
5.6.120.0200.07321.11
5.6.110.0100.06021.13
5.6.100.0070.08321.07
5.6.90.0170.07321.13
5.6.80.0030.05020.54
5.6.70.0230.03320.27
5.5.350.0100.08720.45
5.5.340.0030.08718.02
5.5.330.0130.07720.21
5.5.320.0270.05320.21
5.5.310.0200.04320.12
5.5.300.0070.08018.01
5.5.290.0100.07717.95
5.5.280.0030.06320.84
5.5.270.0030.08720.89
5.5.260.0070.06720.95
5.5.250.0070.07720.58
5.5.240.0170.07320.15
5.4.450.0200.05319.56
5.4.440.0500.05319.41
5.4.430.0030.06019.10
5.4.420.0670.00019.29
5.4.410.0130.05318.68
5.4.400.0370.04018.62
5.4.390.0200.06718.74
5.4.380.0200.05718.56
5.4.370.0100.04718.72
5.4.360.0030.04018.70
5.4.350.0030.03811.98
5.4.340.0030.03911.97
5.4.320.0040.03912.45
5.4.310.0090.03512.45
5.4.300.0080.03912.46
5.4.290.0070.05212.45
5.4.280.0070.03612.35
5.4.270.0090.04912.35
5.4.260.0070.03812.35
5.4.250.0070.04012.35
5.4.240.0090.03312.35
5.4.230.0070.03712.34
5.4.220.0080.04112.34
5.4.210.0080.03412.34
5.4.200.0070.03712.34
5.4.190.0060.03512.34
5.4.180.0080.03512.34
5.4.170.0090.03412.35
5.4.160.0030.04012.35
5.4.150.0090.04212.34
5.4.140.0040.03912.03
5.4.130.0060.03612.01
5.4.120.0100.04211.97
5.4.110.0080.03511.96
5.4.100.0080.04011.96
5.4.90.0080.03911.96
5.4.80.0060.03911.97
5.4.70.0070.04211.96
5.4.60.0060.03711.96
5.4.50.0050.03711.96
5.4.40.0110.03111.95
5.4.30.0080.03511.95
5.4.20.0050.03711.95
5.4.10.0080.03311.95
5.4.00.0060.03711.44
5.3.290.0050.04112.80
5.3.280.0080.04712.70
5.3.270.0030.04212.72
5.3.260.0050.04012.71
5.3.250.0060.03812.71
5.3.240.0110.03512.72
5.3.230.0080.04412.70
5.3.220.0050.04012.68
5.3.210.0090.03912.68
5.3.200.0090.03712.68
5.3.190.0100.03412.68
5.3.180.0080.03812.67
5.3.170.0090.03412.66
5.3.160.0060.03812.67
5.3.150.0110.03212.67
5.3.140.0070.03512.66
5.3.130.0060.04012.66
5.3.120.0050.04112.65
5.3.110.0110.03512.66
5.3.100.0100.03412.12
5.3.90.0090.03412.08
5.3.80.0050.03712.08
5.3.70.0050.03912.07
5.3.60.0120.04412.06
5.3.50.0080.04812.00
5.3.40.0100.04812.00
5.3.30.0080.04111.94
5.3.20.0070.03411.72
5.3.10.0060.03411.69
5.3.00.0070.03411.69
5.2.170.0110.0269.18
5.2.160.0040.0319.18
5.2.150.0030.0329.18
5.2.140.0030.0339.18
5.2.130.0020.0329.14
5.2.120.0080.0259.13
5.2.110.0080.0269.14
5.2.100.0060.0279.14
5.2.90.0040.0329.14
5.2.80.0080.0289.14
5.2.70.0050.0409.13
5.2.60.0040.0339.09
5.2.50.0050.0329.05
5.2.40.0080.0309.04
5.2.30.0080.0289.01
5.2.20.0080.0279.00
5.2.10.0080.0298.92
5.2.00.0080.0318.77
5.1.60.0040.0288.06
5.1.50.0030.0268.06
5.1.40.0030.0258.04
5.1.30.0050.0268.39
5.1.20.0050.0268.41
5.1.10.0060.0268.13
5.1.00.0060.0398.13
5.0.50.0030.0226.61
5.0.40.0020.0216.48
5.0.30.0030.0326.29
5.0.20.0020.0216.26
5.0.10.0030.0216.23
5.0.00.0060.0286.23
4.4.90.0040.0164.78
4.4.80.0030.0164.76
4.4.70.0040.0184.75
4.4.60.0060.0164.75
4.4.50.0020.0194.77
4.4.40.0030.0254.71
4.4.30.0020.0174.76
4.4.20.0010.0174.85
4.4.10.0040.0154.85
4.4.00.0030.0254.76
4.3.110.0040.0154.67
4.3.100.0020.0164.67
4.3.90.0030.0144.64
4.3.80.0050.0224.59
4.3.70.0020.0154.63
4.3.60.0020.0164.63
4.3.50.0050.0134.63
4.3.40.0050.0254.54
4.3.30.0040.0163.28
4.3.20.0010.0193.25
4.3.10.0060.0233.21
4.3.00.0070.0276.55

preferences:
40.49 ms | 401 KiB | 5 Q