3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr[5] = array ( "ID" => 3123, "IS_NEW" => 1, "OrgType" => 5, "Surname" => 'Сабиров', "Name" => 'Раиль', "Patronymic" => 'Анварович' ); $arr[6] = array ( "ID" => 3124, "IS_NEW" => 1, "OrgType" => 5, "Surname" => "Сабиров", "Name" => "Раиль", "Patronymic" => "Анварович" ); function test($item, $key) { echo($key.' = '. $item . "\n"); } array_walk($arr, 'test'); $array = array("color" => array("blue", "red", "green"), "size" => array("small", "medium", "large")); print_r(array_keys($array));

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.0150.00316.75
8.3.50.0100.01022.15
8.3.40.0040.01118.75
8.3.30.0070.00719.18
8.3.20.0070.00020.34
8.3.10.0040.00423.43
8.3.00.0040.00419.38
8.2.180.0060.01318.29
8.2.170.0090.00622.96
8.2.160.0110.00320.43
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.21
8.2.110.0040.00422.20
8.2.100.0090.00317.91
8.2.90.0090.00319.36
8.2.80.0030.00617.97
8.2.70.0000.01217.50
8.2.60.0060.00318.05
8.2.50.0030.00518.07
8.2.40.0030.00519.95
8.2.30.0040.00418.08
8.2.20.0030.00517.80
8.2.10.0050.00218.23
8.2.00.0030.00717.64
8.1.280.0120.00925.92
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.89
8.1.230.0080.00319.14
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.38
8.1.190.0040.00417.12
8.1.180.0060.00319.14
8.1.170.0080.00018.46
8.1.160.0040.00421.97
8.1.150.0070.00018.58
8.1.140.0000.00717.42
8.1.130.0070.00017.83
8.1.120.0030.00417.51
8.1.110.0040.00417.36
8.1.100.0040.00417.44
8.1.90.0040.00417.45
8.1.80.0030.00517.40
8.1.70.0030.00317.33
8.1.60.0000.00817.60
8.1.50.0030.00717.41
8.1.40.0030.00517.56
8.1.30.0080.00017.48
8.1.20.0000.00817.56
8.1.10.0040.00417.56
8.1.00.0000.00717.52
8.0.300.0000.00820.73
8.0.290.0050.00217.05
8.0.280.0070.00018.36
8.0.270.0030.00317.16
8.0.260.0000.00617.30
8.0.250.0000.00717.07
8.0.240.0000.00617.01
8.0.230.0080.00016.88
8.0.220.0030.00316.87
8.0.210.0040.00416.83
8.0.200.0070.00017.04
8.0.190.0000.00717.02
8.0.180.0000.00717.01
8.0.170.0040.00416.88
8.0.160.0040.00416.95
8.0.150.0040.00416.82
8.0.140.0040.00416.80
8.0.130.0030.00313.37
8.0.120.0000.00816.92
8.0.110.0040.00417.02
8.0.100.0000.00716.99
8.0.90.0030.00316.73
8.0.80.0040.01116.91
8.0.70.0070.00016.77
8.0.60.0000.00716.82
8.0.50.0000.00717.02
8.0.30.0090.00916.92
8.0.20.0160.00317.40
8.0.10.0000.00716.89
8.0.00.0100.00717.02
7.4.330.0050.00015.14
7.4.320.0060.00016.58
7.4.300.0040.00416.51
7.4.290.0070.00016.61
7.4.280.0000.00716.61
7.4.270.0050.00316.50
7.4.260.0040.00416.48
7.4.250.0000.00716.46
7.4.240.0030.00316.52
7.4.230.0000.00716.51
7.4.220.0090.00916.64
7.4.210.0080.00816.51
7.4.200.0030.00516.32
7.4.190.0030.00516.59
7.4.160.0140.00416.57
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0130.00816.51
7.4.120.0030.01416.58
7.4.110.0090.00916.40
7.4.100.0030.01416.47
7.4.90.0130.00416.61
7.4.80.0080.01219.39
7.4.70.0130.01016.50
7.4.60.0110.00516.41
7.4.50.0050.00016.42
7.4.40.0060.01116.50
7.4.30.0110.00416.48
7.4.00.0060.00914.73
7.3.330.0060.00013.36
7.3.320.0030.00313.35
7.3.310.0040.00416.32
7.3.300.0030.00316.31
7.3.290.0100.00616.45
7.3.280.0090.01016.42
7.3.270.0060.01317.40
7.3.260.0120.00416.54
7.3.250.0070.01116.53
7.3.240.0140.00716.42
7.3.230.0070.01016.59
7.3.210.0040.01216.41
7.3.200.0100.01319.39
7.3.190.0090.01316.52
7.3.180.0130.01016.49
7.3.170.0120.00916.48
7.3.160.0050.01116.47
7.3.120.0050.01114.98
7.3.110.0070.00614.77
7.3.100.0050.00914.69
7.3.90.0100.00615.00
7.3.80.0020.01014.88
7.3.70.0020.01314.78
7.3.60.0040.00814.89
7.3.50.0040.00614.93
7.3.40.0090.00414.66
7.3.30.0020.01114.82
7.3.20.0030.00816.74
7.3.10.0040.01216.63
7.3.00.0060.00716.38
7.2.330.0130.00416.48
7.2.320.0100.00716.56
7.2.310.0150.00316.66
7.2.300.0080.01216.29
7.2.290.0030.01816.55
7.2.250.0070.01114.93
7.2.240.0070.01015.08
7.2.230.0040.01215.03
7.2.220.0060.00814.92
7.2.210.0030.01114.76
7.2.200.0080.00314.96
7.2.190.0060.01015.00
7.2.180.0060.00914.82
7.2.170.0080.00714.83
7.2.160.0030.01314.86
7.2.150.0020.01416.90
7.2.140.0080.00416.80
7.2.130.0080.00416.87
7.2.120.0060.00816.74
7.2.110.0050.00916.82
7.2.100.0040.01116.78
7.2.90.0090.00716.84
7.2.80.0070.00616.90
7.2.70.0040.01116.79
7.2.60.0060.00816.66
7.2.50.0060.00716.75
7.2.40.0070.00916.83
7.2.30.0050.00916.62
7.2.20.0080.00516.67
7.2.10.0030.01116.82
7.2.00.0050.00817.31
7.1.330.0050.00515.92
7.1.320.0060.00815.75
7.1.310.0040.01015.73
7.1.300.0070.00715.71
7.1.290.0020.01215.81
7.1.280.0020.01215.83
7.1.270.0080.00615.72
7.1.260.0060.00715.77
7.1.250.0050.00915.67
7.1.240.0120.00415.82
7.1.230.0060.00615.80
7.1.220.0120.00315.64
7.1.210.0100.00715.81
7.1.200.0110.00415.47
7.1.190.0030.00715.53
7.1.180.0060.00615.50
7.1.170.0060.00615.85
7.1.160.0030.00615.68
7.1.150.0040.01115.73
7.1.140.0090.00015.78
7.1.130.0030.01015.48
7.1.120.0030.00615.83
7.1.110.0110.00415.35
7.1.100.0080.00316.95
7.1.90.0060.00915.39
7.1.80.0060.00615.37
7.1.70.0060.00816.47
7.1.60.0050.01217.46
7.1.50.0110.00516.36
7.1.40.0060.00615.57
7.1.30.0040.01115.45
7.1.20.0040.00715.84
7.1.10.0060.00915.33
7.1.00.0050.03819.00
7.0.330.0080.00515.10
7.0.320.0030.01015.03
7.0.310.0140.00315.26
7.0.300.0030.01015.21
7.0.290.0030.01015.04
7.0.280.0130.00315.05
7.0.270.0100.00315.24
7.0.260.0080.00015.14
7.0.250.0030.00615.15
7.0.240.0040.00415.41
7.0.230.0050.00515.38
7.0.220.0140.00015.41
7.0.210.0040.01115.47
7.0.200.0050.00815.74
7.0.190.0120.00315.27
7.0.180.0100.00015.23
7.0.170.0030.00515.22
7.0.160.0040.01115.09
7.0.150.0070.00415.25
7.0.140.0050.03918.63
7.0.130.0060.00315.39
7.0.120.0030.00515.53
7.0.110.0030.00715.39
7.0.100.0040.01115.25
7.0.90.0060.00615.34
7.0.80.0080.00915.41
7.0.70.0040.03618.49
7.0.60.0080.04218.57
7.0.50.0070.03718.83
7.0.40.0080.03716.64
7.0.30.0070.04316.80
7.0.20.0050.03616.66
7.0.10.0040.04216.68
7.0.00.0070.04516.63
5.6.380.0060.00614.33
5.6.370.0030.01014.20
5.6.360.0000.01414.25
5.6.350.0040.00714.45
5.6.340.0070.00414.48
5.6.330.0050.00314.45
5.6.320.0000.00914.23
5.6.310.0060.00614.50
5.6.300.0130.00014.28
5.6.290.0080.00614.32
5.6.280.0070.04017.60
5.6.270.0060.00814.20
5.6.260.0060.00314.53
5.6.250.0000.00914.21
5.6.240.0040.00814.48
5.6.230.0110.00414.24
5.6.220.0000.04117.32
5.6.210.0110.04117.44
5.6.200.0030.04317.67
5.6.190.0030.04817.72
5.6.180.0020.02617.56
5.6.170.0040.04317.63
5.6.160.0080.04317.73
5.6.150.0060.04017.76
5.6.140.0030.03217.65
5.6.130.0080.03317.63
5.6.120.0060.04217.68
5.6.110.0050.03917.56
5.6.100.0050.02817.66
5.6.90.0090.04117.64
5.6.80.0050.03317.29
5.6.70.0070.02817.27
5.6.60.0080.03817.54
5.6.50.0060.04217.29
5.6.40.0050.02817.35
5.6.30.0080.03617.20
5.6.20.0030.03217.29
5.6.10.0090.03817.38
5.6.00.0090.03817.28
5.5.380.0030.00311.60
5.5.370.0040.00711.46
5.5.360.0030.04415.86
5.5.350.0080.03415.85
5.5.340.0060.02815.88
5.5.330.0070.04115.95
5.5.320.0070.03515.91
5.5.310.0030.04616.04
5.5.300.0030.04616.00
5.5.290.0030.02815.95
5.5.280.0060.03015.98
5.5.270.0050.04515.96
5.5.260.0040.02215.94
5.5.250.0050.03215.97
5.5.240.0070.04015.75
5.5.230.0050.03615.67
5.5.220.0070.03815.78
5.5.210.0080.03315.57
5.5.200.0050.04115.75
5.5.190.0060.03815.53
5.5.180.0020.03415.78
5.5.170.0000.01111.16
5.5.160.0040.03515.67
5.5.150.0000.04315.63
5.5.140.0060.02715.68
5.5.130.0040.03415.75
5.5.120.0030.04015.58
5.5.110.0040.04015.57
5.5.100.0040.03715.48
5.5.90.0110.03315.48
5.5.80.0030.03815.60
5.5.70.0020.04515.74
5.5.60.0080.03815.53
5.5.50.0030.02615.62
5.5.40.0030.02315.61
5.5.30.0030.02115.59
5.5.20.0030.02515.64
5.5.10.0000.02515.67
5.5.00.0030.02415.52
5.4.450.0080.03115.12
5.4.440.0060.04315.19
5.4.430.0060.04015.09
5.4.420.0000.04715.19
5.4.410.0020.03915.18
5.4.400.0060.04015.09
5.4.390.0060.02615.01
5.4.380.0050.03215.20
5.4.370.0030.04314.95
5.4.360.0060.03014.95
5.4.350.0030.04015.16
5.4.340.0030.04315.02
5.4.330.0040.00811.00
5.4.320.0050.03615.17
5.4.310.0050.03114.96
5.4.300.0020.03615.00
5.4.290.0050.04115.12
5.4.280.0030.04015.02
5.4.270.0060.03515.04
5.4.260.0070.03315.06
5.4.250.0050.03815.13
5.4.240.0050.04415.09
5.4.230.0080.03714.95
5.4.220.0070.03915.11
5.4.210.0040.02215.08
5.4.200.0070.01815.02
5.4.190.0000.02414.93
5.4.180.0050.02214.92
5.4.170.0060.01915.06
5.4.160.0040.02015.08
5.4.150.0060.01815.01
5.4.140.0050.02013.73
5.4.130.0020.02313.67
5.4.120.0020.02013.68
5.4.110.0000.02213.84
5.4.100.0030.02013.93
5.4.90.0030.01713.74
5.4.80.0060.01513.74
5.4.70.0050.01613.70
5.4.60.0050.02013.66
5.4.50.0030.02213.74
5.4.40.0000.02013.76
5.4.30.0050.01813.75
5.4.20.0030.01613.68
5.4.10.0000.02113.76
5.4.00.0070.01513.51
5.3.290.0000.03012.86
5.3.280.0100.03312.81
5.3.270.0010.02312.77
5.3.260.0000.02212.83
5.3.250.0030.02012.77
5.3.240.0000.02412.81
5.3.230.0000.01912.78
5.3.220.0000.02012.81
5.3.210.0040.02212.81
5.3.200.0010.01812.85
5.3.190.0000.01812.79
5.3.180.0000.01912.85
5.3.170.0000.02212.77
5.3.160.0000.02612.81
5.3.150.0020.01812.82
5.3.140.0020.02012.76
5.3.130.0050.02612.82
5.3.120.0020.02512.81
5.3.110.0030.01812.75
5.3.100.0080.01312.59
5.3.90.0060.01512.47
5.3.80.0050.01512.58
5.3.70.0020.01712.52
5.3.60.0050.01512.56
5.3.50.0020.02012.44
5.3.40.0030.01712.46
5.3.30.0070.01612.52
5.3.20.0010.01912.30
5.3.10.0050.02212.37
5.3.00.0030.01812.35
5.2.170.0070.01511.09
5.2.160.0020.01511.00
5.2.150.0030.01411.10
5.2.140.0040.01411.10
5.2.130.0040.01511.01
5.2.120.0020.01811.08
5.2.110.0060.01211.08
5.2.100.0050.01211.07
5.2.90.0000.01511.05
5.2.80.0000.01910.98
5.2.70.0020.01811.10
5.2.60.0020.01711.07
5.2.50.0020.01311.07
5.2.40.0000.01411.00
5.2.30.0020.01311.00
5.2.20.0000.01910.97
5.2.10.0040.01610.99
5.2.00.0040.01410.95
5.1.60.0060.00810.95
5.1.50.0010.01310.95
5.1.40.0020.01010.95
5.1.30.0000.01510.95
5.1.20.0030.01110.95
5.1.10.0030.01310.95
5.1.00.0020.01510.95
5.0.50.0020.01210.95
5.0.40.0020.01010.95
5.0.30.0030.01310.95
5.0.20.0020.01210.95
5.0.10.0000.01410.95
5.0.00.0000.01910.95
4.4.90.0020.00810.95
4.4.80.0000.00810.95
4.4.70.0020.00810.95
4.4.60.0020.00810.95
4.4.50.0020.00710.95
4.4.40.0020.01210.95
4.4.30.0010.00810.95
4.4.20.0000.01110.95
4.4.10.0000.00910.95
4.4.00.0030.01210.95
4.3.110.0030.00710.95
4.3.100.0000.01210.95
4.3.90.0010.00810.95
4.3.80.0000.01310.95
4.3.70.0020.01010.95
4.3.60.0020.01310.95
4.3.50.0010.00810.95
4.3.40.0030.02510.95
4.3.30.0020.00810.95
4.3.20.0020.01010.95
4.3.10.0070.01210.95
4.3.00.0050.01710.95

preferences:
46.98 ms | 401 KiB | 5 Q