3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = array("person" => array( 1 => array("id" => 1, "name" => "bob"), 2 => array("id" => 2, "name" => "jim") ) ); $arr = array_pop($_POST); var_dump($arr); foreach($arr as $a) { if ($a["id"] == 1) { echo $a["name"]; } }

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.70.0170.00316.58
8.3.60.0110.00716.25
8.3.50.0070.00718.16
8.3.40.0040.01118.91
8.3.30.0110.00318.65
8.3.20.0080.00020.52
8.3.10.0040.00421.03
8.3.00.0000.00719.08
8.2.180.0130.00325.92
8.2.170.0090.00618.91
8.2.160.0120.00622.96
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00019.30
8.2.120.0000.00726.35
8.2.110.0070.00322.05
8.2.100.0090.00317.84
8.2.90.0000.00819.21
8.2.80.0040.00419.41
8.2.70.0030.00517.63
8.2.60.0050.00318.05
8.2.50.0000.00818.22
8.2.40.0000.00720.63
8.2.30.0000.00719.23
8.2.20.0000.00718.08
8.2.10.0000.00718.03
8.2.00.0040.00418.00
8.1.280.0000.01425.92
8.1.270.0090.00023.78
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0000.01022.62
8.1.230.0060.00617.77
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0000.00718.63
8.1.160.0040.00418.93
8.1.150.0000.00820.34
8.1.140.0050.00219.54
8.1.130.0040.00417.32
8.1.120.0080.00017.47
8.1.110.0040.00417.42
8.1.100.0030.00617.49
8.1.90.0050.00317.40
8.1.80.0000.00717.50
8.1.70.0040.00417.46
8.1.60.0040.00417.47
8.1.50.0040.00417.41
8.1.40.0030.00517.51
8.1.30.0070.00017.58
8.1.20.0030.00617.50
8.1.10.0050.00217.48
8.1.00.0040.00417.58
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0030.00318.38
8.0.270.0030.00317.11
8.0.260.0020.00516.83
8.0.250.0000.00716.98
8.0.240.0000.00816.95
8.0.230.0030.00316.89
8.0.220.0000.00716.89
8.0.210.0070.00016.91
8.0.200.0000.00716.94
8.0.190.0040.00416.96
8.0.180.0020.00516.93
8.0.170.0040.00416.95
8.0.160.0050.00316.78
8.0.150.0070.00016.88
8.0.140.0070.00016.85
8.0.130.0080.00013.33
8.0.120.0000.00716.80
8.0.110.0070.00016.79
8.0.100.0070.00016.72
8.0.90.0000.00716.77
8.0.80.0110.01116.79
8.0.70.0030.00516.89
8.0.60.0070.00016.85
8.0.50.0040.00416.83
8.0.30.0080.00917.16
8.0.20.0110.00917.40
8.0.10.0000.00816.97
8.0.00.0140.00416.68
7.4.330.0050.00015.55
7.4.320.0030.00316.47
7.4.300.0000.00616.59
7.4.290.0070.00016.41
7.4.280.0070.00016.51
7.4.270.0000.00616.52
7.4.260.0070.00016.58
7.4.250.0050.00216.55
7.4.240.0050.00216.53
7.4.230.0090.00016.67
7.4.220.0050.01316.68
7.4.210.0070.00716.61
7.4.200.0030.00316.58
7.4.160.0100.00916.44
7.4.150.0090.00817.40
7.4.140.0140.00917.86
7.4.130.0090.01316.59
7.4.120.0100.01316.44
7.4.110.0100.01616.49
7.4.100.0090.01216.60
7.4.90.0130.00316.54
7.4.80.0070.01019.39
7.4.70.0070.01016.66
7.4.60.0120.00416.52
7.4.50.0100.01016.60
7.4.40.0100.01316.52
7.4.30.0090.00916.54
7.4.00.0120.00315.13
7.3.330.0000.00613.30
7.3.320.0030.00313.15
7.3.310.0080.00016.20
7.3.300.0000.00716.23
7.3.290.0080.00016.16
7.3.280.0060.01016.25
7.3.270.0030.01417.40
7.3.260.0070.01316.40
7.3.250.0080.01216.37
7.3.240.0100.00816.38
7.3.230.0070.01016.34
7.3.210.0100.00716.66
7.3.200.0100.00716.54
7.3.190.0090.01316.23
7.3.180.0170.00016.42
7.3.170.0120.00316.41
7.3.160.0140.00316.39
7.3.10.0100.00716.09
7.3.00.0110.00816.22
7.2.330.0080.00816.48
7.2.320.0130.00716.75
7.2.310.0100.01316.54
7.2.300.0130.00716.66
7.2.290.0090.00616.73
7.2.130.0140.00416.23
7.2.120.0120.00916.19
7.2.110.0080.00816.52
7.2.100.0090.00616.30
7.2.90.0070.01316.62
7.2.80.0130.01516.63
7.2.70.0150.01116.36
7.2.60.0080.00916.63
7.2.50.0160.00616.80
7.2.40.0040.01316.55
7.2.30.0170.00616.40
7.2.20.0080.00816.52
7.2.10.0160.00616.76
7.2.00.0060.01316.95
7.1.250.0160.00015.10
7.1.200.0110.00315.52
7.1.90.0000.01418.11
7.1.80.0080.00517.95
7.1.70.0050.00517.20
7.1.60.0150.01135.11
7.1.50.0180.00934.93
7.1.40.0120.01434.49
7.1.30.0160.01034.54
7.1.20.0200.00734.33
7.1.10.0080.00416.54
7.1.00.0030.00916.60
7.0.230.0080.00417.71
7.0.220.0030.01017.68
7.0.210.0040.00716.63
7.0.200.0050.00816.95
7.0.190.0040.00816.63
7.0.180.0000.01316.13
7.0.170.0120.00616.13
7.0.160.0060.00616.23
7.0.150.0060.00616.05
7.0.140.0090.00616.37
7.0.130.0000.01316.47
7.0.120.0080.00416.46
7.0.110.0030.00916.14
7.0.100.0090.00316.23
7.0.90.0040.00816.00
7.0.80.0090.00316.41
7.0.70.0000.01316.31
7.0.60.0030.00916.14
7.0.50.0080.00416.24
7.0.40.0080.00516.52
7.0.30.0080.00416.23
7.0.20.0050.00716.44
7.0.10.0300.01116.33
7.0.00.0140.00016.29

preferences:
63.97 ms | 401 KiB | 5 Q