3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'aM' => array ( 0 => array ( 'iId' => 0, 'iTime' => 00 ), 1 => Array ( 'iId' => 1, 'iTime' => 11 ), 2 => array ( 'iId' => 2, 'iTime' => 22 ), ), 'aN' => array ( 0 => array ( 'sName' => 'a' ), 1 => array ( 'sName' => 'b' ), 2 => array ( 'sName' => 'v' ), ) ); $aM = $array['aM']; $aN = $array['aN']; $iter = new MultipleIterator; $iter->attachIterator( new ArrayIterator( $aM)); $iter->attachIterator( new ArrayIterator( $aN)); foreach( $iter as $data) { list( $a, $b) = $data; echo $a['iId'] . ' ' . $b['sName'] . ','; }

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.0070.00716.38
8.3.50.0160.00318.14
8.3.40.0090.00918.70
8.3.30.0090.00618.84
8.3.20.0030.00518.66
8.3.10.0050.00520.34
8.3.00.0000.00919.33
8.2.180.0100.01025.92
8.2.170.0070.00719.04
8.2.160.0070.00722.27
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0020.00520.94
8.2.110.0050.00522.14
8.2.100.0090.00317.87
8.2.90.0100.00019.22
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0050.00518.05
8.2.50.0030.00518.07
8.2.40.0060.00318.28
8.2.30.0020.00518.13
8.2.20.0090.00319.45
8.2.10.0000.00717.68
8.2.00.0040.00417.76
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0100.00021.04
8.1.230.0100.00019.09
8.1.220.0070.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0040.00417.38
8.1.180.0050.00518.10
8.1.170.0030.00618.79
8.1.160.0000.00718.82
8.1.150.0050.00318.66
8.1.140.0080.00017.50
8.1.130.0070.00017.95
8.1.120.0040.00417.33
8.1.110.0040.00417.50
8.1.100.0040.00417.56
8.1.90.0040.00417.49
8.1.80.0000.00717.37
8.1.70.0060.00317.30
8.1.60.0040.00417.65
8.1.50.0040.00417.51
8.1.40.0070.00017.52
8.1.30.0030.00617.55
8.1.20.0050.00317.61
8.1.10.0080.00017.49
8.1.00.0080.00017.42
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.46
8.0.270.0000.00818.51
8.0.260.0000.00716.84
8.0.250.0040.00416.89
8.0.240.0030.00517.03
8.0.230.0000.00716.94
8.0.220.0000.00716.90
8.0.210.0060.00316.87
8.0.200.0040.00416.92
8.0.190.0000.00716.91
8.0.180.0030.00516.85
8.0.170.0030.00616.89
8.0.160.0000.00716.80
8.0.150.0030.00616.74
8.0.140.0060.00316.86
8.0.130.0030.00313.40
8.0.120.0000.00916.93
8.0.110.0000.00716.92
8.0.100.0040.00416.96
8.0.90.0000.00716.85
8.0.80.0040.01116.86
8.0.70.0000.00717.00
8.0.60.0000.00716.80
8.0.50.0000.00816.77
8.0.30.0060.01316.88
8.0.20.0150.00416.87
8.0.10.0000.00817.06
8.0.00.0110.00816.75
7.4.330.0020.00212.94
7.4.320.0000.00716.52
7.4.300.0040.00416.50
7.4.290.0030.00316.53
7.4.280.0030.00716.61
7.4.270.0030.00316.52
7.4.260.0060.00013.23
7.4.250.0000.01016.56
7.4.240.0080.00016.54
7.4.230.0030.00316.41
7.4.220.0060.01316.55
7.4.210.0090.01216.64
7.4.200.0000.00816.52
7.4.190.0000.00716.38
7.4.160.0060.00916.45
7.4.150.0170.00716.59
7.4.140.0110.01216.61
7.4.130.0100.00616.60
7.4.120.0090.00916.48
7.4.110.0100.01016.54
7.4.100.0040.01416.58
7.4.90.0060.01316.56
7.4.80.0100.01419.39
7.4.70.0120.00616.66
7.4.60.0070.01016.57
7.4.50.0030.00516.40
7.4.40.0060.00916.60
7.4.30.0160.00016.54
7.4.00.0040.01115.08
7.3.330.0000.00613.13
7.3.320.0030.00313.23
7.3.310.0030.00316.47
7.3.300.0000.00616.33
7.3.290.0080.00616.33
7.3.280.0110.00716.32
7.3.270.0000.01616.34
7.3.260.0070.01016.74
7.3.250.0140.00616.43
7.3.240.0120.00416.29
7.3.230.0150.00316.43
7.3.210.0130.00316.35
7.3.200.0100.00716.30
7.3.190.0070.01116.34
7.3.180.0160.00316.46
7.3.170.0080.00816.38
7.3.160.0110.00716.29
7.3.120.0040.01214.93
7.3.10.0040.01116.61
7.3.00.0070.00516.50
7.2.330.0080.01216.92
7.2.320.0030.01416.50
7.2.310.0070.01316.84
7.2.300.0070.01016.73
7.2.290.0030.01316.53
7.2.130.0050.01117.01
7.2.120.0050.00816.63
7.2.110.0030.00816.97
7.2.100.0100.00316.93
7.2.90.0050.00616.95
7.2.80.0080.00516.98
7.2.70.0050.00817.03
7.2.60.0050.00716.78
7.2.50.0060.01216.80
7.2.40.0040.01216.98
7.2.30.0090.00916.88
7.2.20.0090.00516.82
7.2.10.0070.00417.02
7.2.00.0050.00917.74
7.1.250.0050.00715.57
7.1.240.0030.00715.86
7.1.230.0000.00815.59
7.1.220.0120.00015.89
7.1.210.0080.00415.69
7.1.200.0030.00515.67
7.1.190.0040.00415.81
7.1.180.0060.00315.80
7.1.170.0030.00915.90
7.1.160.0040.00815.77
7.1.150.0000.01515.57
7.1.140.0030.01315.67
7.1.130.0110.00415.80
7.1.120.0000.01415.73
7.1.110.0090.00015.86
7.1.100.0020.01016.96
7.1.90.0030.00615.94
7.1.80.0000.01415.63
7.1.70.0050.00816.63
7.1.60.0120.00517.55
7.1.50.0020.00916.50
7.1.40.0100.00315.54
7.1.30.0030.00715.79
7.1.20.0080.00315.87
7.1.10.0040.01115.79
7.1.00.0030.02219.02
7.0.330.0030.01015.14
7.0.320.0060.00915.52
7.0.310.0040.00715.46
7.0.300.0040.01115.07
7.0.290.0000.01115.31
7.0.280.0050.00815.30
7.0.270.0060.00915.33
7.0.260.0000.00815.13
7.0.250.0040.01115.34
7.0.240.0030.01015.53
7.0.230.0000.00715.41
7.0.220.0060.00615.36
7.0.210.0100.00315.48
7.0.200.0000.00916.14
7.0.190.0030.01015.21
7.0.180.0070.00315.46
7.0.170.0000.01015.22
7.0.160.0070.00415.56
7.0.150.0000.01315.20
7.0.140.0040.04118.84
7.0.130.0080.00515.42
7.0.120.0080.03518.79
7.0.110.0100.00315.58
7.0.100.0060.00615.23
7.0.90.0040.00815.52
7.0.80.0030.01315.43
7.0.70.0030.00915.43
7.0.60.0080.04217.67
7.0.50.0060.04316.61
7.0.40.0070.03216.70
7.0.30.0170.02516.95
7.0.20.0160.03616.82
7.0.10.0120.03016.84
7.0.00.0040.03216.71
5.6.380.0000.01214.60
5.6.370.0100.00614.48
5.6.360.0080.00414.69
5.6.350.0100.00714.41
5.6.340.0040.00714.45
5.6.330.0070.00414.14
5.6.320.0120.00314.09
5.6.310.0030.01014.41
5.6.300.0060.00614.29
5.6.290.0000.00814.21
5.6.280.0060.03717.68
5.6.270.0040.00714.65
5.6.260.0030.00714.03
5.6.250.0060.00914.57
5.6.240.0110.00314.21
5.6.230.0000.01414.21
5.6.220.0030.00714.50
5.6.210.0060.04317.63
5.6.200.0080.04216.17
5.6.190.0020.02617.66
5.6.180.0240.02717.38
5.6.170.0200.03717.32
5.6.160.0100.04317.35
5.6.150.0070.02116.30
5.6.140.0080.02616.01
5.6.130.0030.04616.19
5.6.120.0080.03317.81
5.6.110.0030.02817.66
5.6.100.0050.04517.58
5.6.90.0090.02517.62
5.6.80.0090.03817.48
5.6.70.0100.02517.29
5.6.60.0030.01314.26
5.6.50.0070.00714.45
5.6.40.0030.01414.24
5.6.30.0060.00914.28
5.6.20.0040.01114.27
5.6.10.0000.01114.03
5.6.00.0080.00314.30
5.5.380.0080.00311.18
5.5.370.0070.00311.18
5.5.360.0000.01111.18
5.5.350.0150.02315.77
5.5.340.0100.01814.56
5.5.330.0040.02615.77
5.5.320.0150.04215.82
5.5.310.0200.03815.75
5.5.300.0020.02414.61
5.5.290.0050.02814.59
5.5.280.0050.03716.05
5.5.270.0080.02816.05
5.5.260.0080.04315.91
5.5.250.0070.04015.94
5.5.240.0030.03115.70
5.5.230.0000.01111.18
5.5.220.0060.00011.18
5.5.210.0070.00411.21
5.5.200.0030.00711.18
5.5.190.0030.00311.31
5.5.180.0000.00711.18
5.5.170.0060.00311.18
5.5.160.0030.00911.18
5.5.150.0080.00311.20
5.5.140.0080.00011.19
5.5.130.0050.00511.18
5.5.120.0030.01011.18
5.5.110.0000.00811.18
5.5.100.0090.00011.18
5.5.90.0060.00011.18
5.5.80.0030.00611.18
5.5.70.0080.00011.21
5.5.60.0030.00311.18
5.5.50.0040.00711.18
5.5.40.0100.00011.18
5.5.30.0050.00011.18
5.5.20.0000.01111.18
5.5.10.0080.00011.18
5.5.00.0040.00711.18
5.4.450.0080.02515.32
5.4.440.0050.03215.21
5.4.430.0090.03715.29
5.4.420.0070.02715.29
5.4.410.0040.03115.14
5.4.400.0080.03515.16
5.4.390.0030.04014.98
5.4.380.0120.03615.13
5.4.370.0080.03515.16
5.4.360.0050.02215.13
5.4.350.0050.02115.13
5.4.340.0020.04215.15
5.4.330.0070.00711.18
5.4.320.0030.02815.14
5.4.310.0070.01915.13
5.4.300.0070.03015.14
5.4.290.0020.02715.16
5.4.280.0050.03315.09
5.4.270.0070.02415.16
5.4.260.0030.02115.15
5.4.250.0020.04315.16
5.4.240.0050.02315.16
5.4.230.0090.02915.13
5.4.220.0030.04315.13
5.4.210.0080.02315.17
5.4.200.0080.02515.13
5.4.190.0080.02014.99
5.4.180.0050.03115.15
5.4.170.0090.03215.19
5.4.160.0070.02715.04
5.4.150.0080.03314.97
5.4.140.0130.02313.71
5.4.130.0050.03313.71
5.4.120.0040.02413.68
5.4.110.0030.04113.67
5.4.100.0060.01813.67
5.4.90.0050.02713.72
5.4.80.0090.03313.76
5.4.70.0060.03613.71
5.4.60.0000.02513.70
5.4.50.0040.02013.71
5.4.40.0050.04313.78
5.4.30.0050.02713.71
5.4.20.0020.03513.88
5.4.10.0050.03013.82
5.4.00.0020.03613.43
5.3.290.0070.04012.97
5.3.280.0050.03812.94
5.3.270.0060.02912.94
5.3.260.0020.02712.86
5.3.250.0050.04012.95
5.3.240.0070.04012.91
5.3.230.0070.04012.87
5.3.220.0090.04012.84
5.3.210.0090.03612.92
5.3.200.0100.03312.84
5.3.190.0110.03612.79
5.3.180.0070.02812.88
5.3.170.0080.04012.85
5.3.160.0070.01812.84
5.3.150.0100.02912.84
5.3.140.0110.03812.82
5.3.130.0100.03712.83
5.3.120.0110.02212.78
5.3.110.0000.02712.76
5.3.100.0050.02512.58
5.3.90.0120.03412.61
5.3.80.0080.03812.61
5.3.70.0070.03012.57
5.3.60.0090.02812.60
5.3.50.0090.02012.53
5.3.40.0030.02812.62
5.3.30.0070.03612.53
5.3.20.0070.03812.33
5.3.10.0020.04312.33
5.3.00.0070.01712.32
5.2.170.0020.02011.07
5.2.160.0090.03011.11
5.2.150.0020.03011.09
5.2.140.0030.02411.11
5.2.130.0060.03311.18
5.2.120.0030.03511.18
5.2.110.0020.02211.12
5.2.100.0080.02811.05
5.2.90.0050.01911.14
5.2.80.0030.03111.12
5.2.70.0030.02111.11
5.2.60.0030.03611.12
5.2.50.0070.03211.05
5.2.40.0040.03611.07
5.2.30.0030.02610.98
5.2.20.0080.02810.99
5.2.10.0050.02111.02
5.2.00.0020.03310.95
5.1.60.0070.02510.54
5.1.50.0070.02310.58
5.1.40.0080.02510.50
5.1.30.0080.02810.71
5.1.20.0080.02710.76
5.1.10.0090.02810.63
5.1.00.0030.02710.62
5.0.50.0060.01510.37
5.0.40.0010.02110.37
5.0.30.0020.03010.37
5.0.20.0020.01810.37
5.0.10.0050.01310.37
5.0.00.0030.02010.37
4.4.90.0010.01310.37
4.4.80.0020.02410.37
4.4.70.0000.01710.37
4.4.60.0040.01510.37
4.4.50.0030.01510.37
4.4.40.0000.03110.37
4.4.30.0000.02210.37
4.4.20.0040.01710.37
4.4.10.0000.02310.37
4.4.00.0030.02010.37
4.3.110.0020.01310.37
4.3.100.0060.00810.37
4.3.90.0020.01210.37
4.3.80.0070.01010.37
4.3.70.0040.01710.37
4.3.60.0050.00810.37
4.3.50.0020.01010.37
4.3.40.0010.01310.37
4.3.30.0050.01710.37
4.3.20.0020.02010.37
4.3.10.0030.01710.37
4.3.00.0020.01710.37

preferences:
51.38 ms | 401 KiB | 5 Q