3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( "0" => "", "address_country" => "", "1" => "2011-11-29 14:49:10", "createdtime" => "2011-11-29 14:49:10" ); $c = array_values($a); for($i = 0; $i < count($c); $i++){ if(count($c) > $i-1) { if(array_search($c[$i+1],$a) == "address_country") echo "found"; } }

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.0140.00718.38
8.3.50.0130.00521.27
8.3.40.0150.00018.67
8.3.30.0100.00318.96
8.3.20.0040.00420.07
8.3.10.0090.00021.91
8.3.00.0030.00622.47
8.2.180.0140.00316.63
8.2.170.0170.00322.96
8.2.160.0000.01420.40
8.2.150.0050.00324.18
8.2.140.0030.01624.66
8.2.130.0000.00826.16
8.2.120.0000.00919.66
8.2.110.0100.00020.52
8.2.100.0070.00419.26
8.2.90.0070.00019.36
8.2.80.0050.00317.97
8.2.70.0100.00017.75
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0040.00418.16
8.2.30.0000.00818.04
8.2.20.0070.00017.85
8.2.10.0070.00017.82
8.2.00.0040.00417.73
8.1.280.0210.00025.92
8.1.270.0060.00320.48
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00023.89
8.1.230.0060.00619.00
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.54
8.1.180.0040.00418.61
8.1.170.0040.00418.55
8.1.160.0000.00822.13
8.1.150.0030.00618.57
8.1.140.0000.00717.33
8.1.130.0030.00317.79
8.1.120.0050.00317.52
8.1.110.0070.00017.45
8.1.100.0000.00717.50
8.1.90.0070.00017.50
8.1.80.0030.00317.43
8.1.70.0040.00417.48
8.1.60.0090.00017.59
8.1.50.0000.00717.45
8.1.40.0000.00817.44
8.1.30.0030.00517.65
8.1.20.0030.00517.70
8.1.10.0000.00817.48
8.1.00.0000.00717.47
8.0.300.0050.00218.77
8.0.290.0040.00417.05
8.0.280.0080.00018.45
8.0.270.0040.00417.17
8.0.260.0000.00716.89
8.0.250.0030.00316.94
8.0.240.0050.00317.05
8.0.230.0030.00317.03
8.0.220.0030.00316.95
8.0.210.0030.00316.84
8.0.200.0070.00016.98
8.0.190.0060.00316.92
8.0.180.0070.00016.95
8.0.170.0040.00416.89
8.0.160.0060.00316.98
8.0.150.0030.00316.93
8.0.140.0000.00816.89
8.0.130.0030.00313.31
8.0.120.0040.00416.92
8.0.110.0030.00616.95
8.0.100.0040.00417.02
8.0.90.0040.00416.92
8.0.80.0150.00616.98
8.0.70.0000.00717.01
8.0.60.0000.00717.08
8.0.50.0030.00516.85
8.0.30.0100.00817.15
8.0.20.0120.00617.40
8.0.10.0000.00716.99
8.0.00.0080.01116.64
7.4.330.0050.00015.00
7.4.320.0040.00416.60
7.4.300.0030.00316.51
7.4.290.0000.00716.53
7.4.280.0040.00416.64
7.4.270.0030.00316.50
7.4.260.0000.00716.52
7.4.250.0080.00016.52
7.4.240.0040.00316.59
7.4.230.0030.00516.71
7.4.220.0060.01216.64
7.4.210.0080.00916.57
7.4.200.0030.00316.65
7.4.190.0070.00016.47
7.4.160.0080.00816.52
7.4.150.0140.00317.40
7.4.140.0120.00917.86
7.4.130.0110.00616.64
7.4.120.0090.00816.62
7.4.110.0070.01316.46
7.4.100.0150.00316.62
7.4.90.0100.01016.70
7.4.80.0100.01319.39
7.4.70.0100.00616.54
7.4.60.0120.00916.66
7.4.50.0030.00316.44
7.4.40.0060.00622.77
7.4.30.0080.01116.66
7.4.00.0070.00715.23
7.3.330.0050.00013.24
7.3.320.0000.00513.12
7.3.310.0050.00216.46
7.3.300.0030.00316.37
7.3.290.0060.01116.32
7.3.280.0100.00816.35
7.3.270.0110.00717.40
7.3.260.0140.00316.39
7.3.250.0080.00916.43
7.3.240.0120.00416.33
7.3.230.0150.00916.58
7.3.210.0100.00716.29
7.3.200.0060.01019.39
7.3.190.0080.00916.65
7.3.180.0100.00716.58
7.3.170.0160.00316.43
7.3.160.0090.00616.56
7.3.120.0030.01214.85
7.2.330.0140.00416.60
7.2.320.0130.01216.64
7.2.310.0100.01416.82
7.2.300.0100.00716.61
7.2.290.0060.00916.77
7.2.00.0000.01219.18
7.1.100.0040.00718.17
7.1.70.0050.00317.14
7.1.60.0120.01219.82
7.1.50.0040.00816.78
7.1.00.0030.07322.27
7.0.200.0040.00416.75
7.0.140.0000.07721.97
7.0.60.0100.06720.07
7.0.50.0130.04017.86
7.0.40.0100.05720.40
7.0.30.0200.03720.04
7.0.20.0330.03720.23
7.0.10.0200.03720.02
7.0.00.0030.08020.08
5.6.280.0070.07021.02
5.6.210.0200.07320.69
5.6.200.0030.04718.21
5.6.190.0070.05320.39
5.6.180.2800.04720.73
5.6.170.0270.06320.41
5.6.160.0100.04020.46
5.6.150.0070.05718.18
5.6.140.0030.09018.18
5.6.130.0130.07318.11
5.6.120.0000.04321.15
5.6.110.0070.04321.01
5.6.100.0030.04021.13
5.6.90.0030.04020.95
5.6.80.0130.07720.41
5.6.70.0230.07020.36
5.5.350.0100.08320.41
5.5.340.0030.08717.98
5.5.330.0000.05720.29
5.5.320.0270.07720.42
5.5.310.0370.06320.29
5.5.300.0100.03317.98
5.5.290.0000.07017.98
5.5.280.0030.07320.90
5.5.270.0130.07720.96
5.5.260.0130.07320.67
5.5.250.0100.07720.54
5.5.240.0170.07020.18
5.4.450.0230.06019.32
5.4.440.0530.06019.10
5.4.430.0670.05319.44
5.4.420.0500.04319.54
5.4.410.0030.06019.51
5.4.400.0500.06018.68
5.4.390.0600.06718.65
5.4.380.0270.05318.72
5.4.370.0200.04718.52
5.4.360.0100.05318.59
5.4.350.0090.03611.97
5.4.340.0060.04111.97
5.4.320.0070.03812.46
5.4.310.0060.04112.45
5.4.300.0040.04512.45
5.4.290.0050.04112.45
5.4.280.0040.04312.35
5.4.270.0080.04012.35
5.4.260.0050.03912.35
5.4.250.0070.05018.77
5.4.240.0070.05318.65
5.4.230.0100.04718.99
5.4.220.0070.05719.04
5.4.210.0070.05018.90
5.4.200.0030.05318.65
5.4.190.0170.04318.89
5.4.180.0070.05018.77
5.4.170.0070.05018.99
5.4.160.0070.05019.01
5.4.150.0030.05718.79
5.4.140.0100.04716.29
5.4.130.0030.05016.29
5.4.120.0030.05016.26
5.4.110.0130.04316.49
5.4.100.0130.04016.43
5.4.90.0030.05316.24
5.4.80.0070.05016.48
5.4.70.0000.05316.33
5.4.60.0070.04716.43
5.4.50.0030.05716.42
5.4.40.0070.05016.43
5.4.30.0000.05316.17
5.4.20.0100.06316.33
5.4.10.0170.04016.33
5.4.00.0030.05315.98
5.3.290.0060.03912.80
5.3.280.0070.05314.51
5.3.270.0100.04714.49
5.3.260.0100.05014.52
5.3.250.0000.05714.69
5.3.240.0030.05714.48
5.3.230.0070.05314.46
5.3.220.0130.04714.66
5.3.210.0100.05014.42
5.3.200.0000.05714.57
5.3.190.0170.04014.57
5.3.180.0030.05014.56
5.3.170.0070.05014.57
5.3.160.0030.05314.34
5.3.150.0130.06014.57
5.3.140.0130.04314.25
5.3.130.0170.05014.46
5.3.120.0100.05314.55
5.3.110.0170.04314.59
5.3.100.0000.05713.92
5.3.90.0030.06314.11
5.3.80.0100.04313.71
5.3.70.0030.06313.89
5.3.60.0070.05013.85
5.3.50.0100.04313.72
5.3.40.0100.06314.11
5.3.30.0130.08013.78
5.3.20.0070.04713.38
5.3.10.0030.05013.35
5.3.00.0170.04313.57
5.2.170.0000.06311.29
5.2.160.0100.03711.23
5.2.150.0070.04011.29
5.2.140.0070.06311.14
5.2.130.0070.04011.03
5.2.120.0070.03711.11
5.2.110.0070.03710.98
5.2.100.0070.03711.13
5.2.90.0130.03311.11
5.2.80.0070.03711.13
5.2.70.0000.04311.10
5.2.60.0100.03311.05
5.2.50.0100.03310.95
5.2.40.0070.03711.09
5.2.30.0030.04310.85
5.2.20.0100.03310.79
5.2.10.0130.03310.86
5.2.00.0070.03710.65
5.1.60.0070.03010.04
5.1.50.0100.02710.18
5.1.40.0030.03310.13
5.1.30.0030.03710.16
5.1.20.0030.03310.43
5.1.10.0000.0379.83
5.1.00.0000.05310.10
5.0.50.0000.0308.73
5.0.40.0070.0308.45
5.0.30.0070.0378.13
5.0.20.0100.0308.15
5.0.10.0030.0338.36
5.0.00.0070.0378.39
4.4.90.0030.0177.17
4.4.80.0070.0137.17
4.4.70.0030.0207.17
4.4.60.0000.0207.17
4.4.50.0000.0237.17
4.4.40.0030.0337.17
4.4.30.0070.0177.17
4.4.20.0000.0307.17
4.4.10.0070.0177.17
4.4.00.0000.0337.17
4.3.110.0030.0307.17
4.3.100.0000.0337.17
4.3.90.0070.0207.17
4.3.80.0030.0307.17
4.3.70.0030.0177.17
4.3.60.0000.0207.17
4.3.50.0000.0237.17
4.3.40.0100.0337.17
4.3.30.0000.0337.17
4.3.20.0030.0207.17
4.3.10.0030.0207.17
4.3.00.0030.0276.40

preferences:
37.47 ms | 401 KiB | 5 Q