3v4l.org

run code in 300+ PHP versions simultaneously
<?php $positions = array ( 0 => array ( 'id' => 1, 'code' => 'abc123', '1_1' => '', '1_2' => 'Admin', '1_3' => '', '1_4' => 'Admin', '1_5' => '' ) ); $locations = array('1_1', '1_2', '1_3', '1_4', '1_5'); $output = array(); foreach ($positions as $position) { foreach ($locations as $location) { if ($position[$location] == 'Admin') { $output[] = array('code' => $position['code'], 'location' => $location); } } } print_r($output);

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.0140.00418.67
8.3.30.0040.01118.67
8.3.20.0080.00020.87
8.3.10.0080.00021.95
8.3.00.0080.00023.70
8.2.170.0190.00322.96
8.2.160.0030.01422.18
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.66
8.2.110.0090.00020.91
8.2.100.0110.00017.91
8.2.90.0040.00417.84
8.2.80.0040.00418.05
8.2.70.0040.00417.93
8.2.60.0090.00018.16
8.2.50.0050.00318.10
8.2.40.0080.00019.51
8.2.30.0040.00419.31
8.2.20.0000.00718.03
8.2.10.0060.00319.35
8.2.00.0070.00019.06
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.79
8.1.230.0130.00022.69
8.1.220.0000.00818.63
8.1.210.0040.00419.09
8.1.200.0030.00617.23
8.1.190.0090.00017.23
8.1.180.0050.00318.10
8.1.170.0030.00518.57
8.1.160.0030.00518.76
8.1.150.0070.00018.88
8.1.140.0040.00420.80
8.1.130.0030.00320.16
8.1.120.0000.01017.26
8.1.110.0020.00517.34
8.1.100.0000.00717.36
8.1.90.0040.00417.46
8.1.80.0040.00417.48
8.1.70.0070.00017.50
8.1.60.0080.00317.48
8.1.50.0030.00617.57
8.1.40.0040.00417.40
8.1.30.0000.00817.50
8.1.20.0030.00617.52
8.1.10.0080.00017.55
8.1.00.0000.00817.46
8.0.300.0030.00519.98
8.0.290.0040.00416.75
8.0.280.0050.00218.49
8.0.270.0040.00416.75
8.0.260.0000.00620.03
8.0.250.0060.00016.82
8.0.240.0030.00316.96
8.0.230.0030.00316.85
8.0.220.0030.00316.79
8.0.210.0050.00316.78
8.0.200.0000.00716.86
8.0.190.0000.00717.00
8.0.180.0000.00816.92
8.0.170.0030.00616.98
8.0.160.0040.00416.87
8.0.150.0080.00016.88
8.0.140.0070.00016.73
8.0.130.0000.00613.33
8.0.120.0000.01016.74
8.0.110.0040.00416.80
8.0.100.0000.00716.75
8.0.90.0050.00216.91
8.0.80.0150.00616.86
8.0.70.0000.00816.75
8.0.60.0040.00416.91
8.0.50.0070.00016.73
8.0.30.0070.01017.14
8.0.20.0090.01517.20
8.0.10.0040.00417.07
8.0.00.0100.00816.73
7.4.330.0050.00015.55
7.4.320.0060.00016.49
7.4.300.0030.00316.62
7.4.290.0030.00316.55
7.4.280.0030.00516.59
7.4.270.0070.00316.45
7.4.260.0000.00713.30
7.4.250.0000.00816.47
7.4.240.0000.00716.56
7.4.230.0030.00316.39
7.4.220.0030.00316.45
7.4.210.0030.01116.48
7.4.200.0040.00416.39
7.4.130.0040.01316.42
7.4.120.0100.00716.45
7.4.110.0070.01616.55
7.4.100.0070.01116.56
7.4.90.0110.00916.54
7.4.80.0090.00919.39
7.4.70.0060.01016.66
7.4.60.0100.00616.49
7.4.50.0040.00816.36
7.4.40.0120.00316.55
7.4.00.0040.01214.63
7.3.330.0030.00316.25
7.3.320.0000.00513.08
7.3.310.0030.00316.17
7.3.300.0020.00516.38
7.3.290.0000.00716.37
7.3.280.0110.00716.31
7.3.260.0070.01216.49
7.3.240.0100.00716.49
7.3.230.0090.00816.51
7.3.210.0100.00616.53
7.3.200.0080.00816.54
7.3.190.0090.00616.36
7.3.180.0090.00616.39
7.3.170.0060.01116.28
7.3.160.0100.00716.33
7.3.80.0030.01214.70
7.3.70.0080.00514.78
7.3.60.0080.00314.78
7.3.50.0070.00714.70
7.3.40.0050.00814.61
7.3.30.0060.00614.84
7.3.20.0110.00515.73
7.3.10.0090.00615.87
7.3.00.0080.00515.82
7.2.330.0190.00316.73
7.2.320.0100.00716.36
7.2.310.0080.01316.59
7.2.300.0170.00316.48
7.2.290.0110.00616.54
7.2.210.0090.00715.09
7.2.200.0050.00915.04
7.2.190.0070.00614.98
7.2.180.0060.00714.97
7.2.170.0080.00914.92
7.2.160.0110.00715.04
7.2.150.0140.00316.08
7.2.140.0090.00915.98
7.2.130.0120.00415.90
7.2.120.0090.00715.91
7.2.110.0160.00415.80
7.2.100.0170.00515.85
7.2.90.0120.00315.94
7.2.80.0050.01315.93
7.2.70.0100.00615.88
7.2.60.0110.01016.00
7.2.50.0090.00916.01
7.2.40.0140.00616.13
7.2.30.0090.01016.16
7.2.20.0060.01016.15
7.2.10.0120.00715.95
7.2.00.0080.00816.07
7.1.310.0120.00514.93
7.1.300.0080.00714.76
7.1.290.0090.00614.76
7.1.280.0160.00714.94
7.1.270.0400.00614.91
7.1.260.0130.00514.87
7.1.250.0060.01014.88

preferences:
134 ms | 400 KiB | 5 Q