3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = array(); // You store some data using some string keys foreach (array('ab', 'cd', '10', 'gh', '24') as $key) { $c[$key] = 1; } // You pass the array $c to some place else and there you do something like foreach ($c as $k => $v) { if ($k === "ab") { echo "found"; exit; } }

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.0060.00918.84
8.3.30.0120.00319.04
8.3.20.0070.00020.39
8.3.10.0090.00621.73
8.3.00.0000.00819.11
8.2.170.0140.00322.96
8.2.160.0130.00322.08
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.43
8.2.110.0060.00321.11
8.2.100.0040.00817.90
8.2.90.0000.00817.93
8.2.80.0060.00318.04
8.2.70.0090.00018.16
8.2.60.0080.00018.34
8.2.50.0040.00418.10
8.2.40.0030.00521.19
8.2.30.0070.00019.19
8.2.20.0000.00717.80
8.2.10.0040.00418.11
8.2.00.0040.00417.73
8.1.270.0080.00018.89
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0030.00623.98
8.1.230.0090.00322.80
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00617.22
8.1.180.0090.00018.10
8.1.170.0000.00820.77
8.1.160.0080.00019.08
8.1.150.0000.00718.88
8.1.140.0050.00217.41
8.1.130.0050.00217.74
8.1.120.0000.00717.46
8.1.110.0030.00717.43
8.1.100.0030.00317.36
8.1.90.0070.00017.52
8.1.80.0000.00717.38
8.1.70.0040.00417.45
8.1.60.0060.00317.60
8.1.50.0050.00317.52
8.1.40.0040.00417.52
8.1.30.0060.00317.55
8.1.20.0030.00617.70
8.1.10.0040.00417.58
8.1.00.0050.00317.50
8.0.300.0040.00419.64
8.0.290.0040.00416.75
8.0.280.0050.00218.41
8.0.270.0070.00017.31
8.0.260.0040.00417.25
8.0.250.0030.00516.91
8.0.240.0080.00017.00
8.0.230.0070.00017.02
8.0.220.0000.00716.89
8.0.210.0030.00316.89
8.0.200.0070.00017.03
8.0.190.0040.00417.04
8.0.180.0070.00017.04
8.0.170.0080.00016.96
8.0.160.0000.00716.93
8.0.150.0000.00716.91
8.0.140.0080.00017.01
8.0.130.0000.00813.38
8.0.120.0050.00316.91
8.0.110.0000.00816.92
8.0.100.0030.00516.91
8.0.90.0040.00416.91
8.0.80.0140.00317.00
8.0.70.0050.00216.86
8.0.60.0040.00416.82
8.0.50.0070.00016.88
8.0.30.0120.01017.26
8.0.20.0120.01117.40
8.0.10.0040.00416.96
8.0.00.0080.01016.76
7.4.330.0000.00515.05
7.4.320.0030.00316.50
7.4.300.0030.00316.44
7.4.290.0030.00316.59
7.4.280.0080.00016.59
7.4.270.0060.00016.66
7.4.260.0030.00516.45
7.4.250.0000.00716.46
7.4.240.0010.00616.60
7.4.230.0000.00716.30
7.4.220.0070.01616.68
7.4.210.0070.01016.48
7.4.200.0040.00416.70
7.4.160.0110.00416.58
7.4.150.0070.01117.40
7.4.140.0120.00917.86
7.4.130.0040.01316.60
7.4.120.0100.00816.56
7.4.110.0030.01416.54
7.4.100.0130.01016.69
7.4.90.0190.00316.41
7.4.80.0090.00819.39
7.4.70.0120.00316.58
7.4.60.0080.00816.50
7.4.50.0000.00916.22
7.4.40.0110.00516.46
7.4.30.0100.01316.56
7.4.00.0030.01114.81
7.3.330.0070.00013.14
7.3.320.0050.00013.19
7.3.310.0060.00016.52
7.3.300.0070.00016.38
7.3.290.0100.00516.36
7.3.280.0070.01016.43
7.3.270.0140.00317.40
7.3.260.0100.01316.45
7.3.250.0080.00916.56
7.3.240.0120.00616.56
7.3.230.0070.01116.57
7.3.210.0140.01016.43
7.3.200.0090.01219.39
7.3.190.0130.00316.60
7.3.180.0150.00316.48
7.3.170.0090.00916.62
7.3.160.0060.00916.33
7.3.120.0060.01314.83
7.3.110.0070.01014.96
7.3.100.0030.01214.65
7.3.90.0090.00014.98
7.3.80.0070.00714.65
7.3.70.0000.01214.91
7.3.60.0060.00914.71
7.3.50.0070.01014.93
7.3.40.0070.00314.54
7.3.30.0060.00314.61
7.3.20.0070.00716.55
7.3.10.0030.00916.83
7.3.00.0090.00316.63
7.2.330.0160.00016.67
7.2.320.0120.01016.39
7.2.310.0080.00816.64
7.2.300.0100.00616.64
7.2.290.0150.00616.42
7.2.250.0100.00715.30
7.2.240.0060.01215.18
7.2.230.0090.01214.86
7.2.220.0030.00715.07
7.2.210.0060.00314.99
7.2.200.0110.00314.88
7.2.190.0100.00315.10
7.2.180.0110.00314.80
7.2.170.0070.00715.06
7.2.00.0000.01419.45
7.1.330.0110.00415.96
7.1.320.0070.00715.82
7.1.310.0040.01415.85
7.1.300.0070.01015.80
7.1.290.0060.00615.60
7.1.280.0030.01015.60
7.1.270.0070.00715.59
7.1.260.0000.01415.87
7.1.100.0030.00618.12
7.1.70.0030.00516.91
7.1.60.0100.01319.22
7.1.50.0060.01516.40
7.1.00.0100.07022.40
7.0.200.0000.00816.40
7.0.140.0070.03321.95
7.0.110.0030.04319.81
7.0.100.0000.04320.02
7.0.90.0000.04319.87
7.0.80.0070.05719.79
7.0.70.0030.04020.00
7.0.60.0070.06019.96
7.0.50.0030.04019.96
7.0.40.0030.03719.77
7.0.30.0070.04019.68
7.0.20.0070.03019.68
7.0.10.0030.04019.59
7.0.00.0030.04319.68
5.6.280.0000.07721.02
5.6.260.0070.03320.54
5.6.250.0030.03720.70
5.6.240.0000.04020.67
5.6.230.0070.10320.65
5.6.220.0030.06020.59
5.6.210.0170.03020.63
5.6.200.0030.04320.57
5.6.190.0070.03720.50
5.6.180.0070.03720.80
5.6.170.0070.04720.57
5.6.160.0100.03320.57
5.6.150.0030.04320.50
5.6.140.0070.03020.54
5.6.130.0030.04320.60
5.6.120.0030.04320.53
5.6.110.0100.03320.54
5.6.100.0030.04020.60
5.6.90.0030.04320.48
5.6.80.0000.03719.98
5.6.70.0070.03719.97
5.6.60.0100.03019.97
5.6.50.0070.07719.96
5.6.40.0030.03719.99
5.6.30.0100.06319.93
5.6.20.0170.05719.98
5.6.10.0070.03719.93
5.6.00.0100.03320.16
5.5.380.0030.04317.56
5.5.370.0070.04717.63
5.5.360.0070.03717.49
5.5.350.0100.04317.77
5.5.340.0070.03718.12
5.5.330.0030.04018.02
5.5.320.0000.04318.10
5.5.310.0000.04717.86
5.5.300.0030.04017.84
5.5.290.0030.03717.89
5.5.280.0030.04318.09
5.5.270.0030.04317.88
5.5.260.0030.03318.08
5.5.250.0100.03317.84
5.5.240.0030.03717.39
5.5.230.0100.03317.50
5.5.220.0000.05317.49
5.5.210.0000.03317.39
5.5.200.0000.04017.12
5.5.190.0070.05017.53
5.5.180.0030.07017.21
5.5.160.0100.07317.48
5.5.150.0000.04017.51
5.5.140.0100.06017.47
5.5.130.0030.06317.34
5.5.120.0130.02717.46
5.5.110.0000.06017.44
5.5.100.0030.08017.12
5.5.90.0030.07717.11
5.5.80.0100.02717.38
5.5.70.0070.03717.41
5.5.60.0000.04017.23
5.5.50.0100.05717.26
5.5.40.0000.03717.28
5.5.30.0070.07317.13
5.5.20.0030.07317.13
5.5.10.0030.07017.22
5.5.00.0170.05717.33
5.4.450.0070.03019.46
5.4.440.0030.04019.39
5.4.430.0030.04019.30
5.4.420.0070.03719.25
5.4.410.0070.03019.32
5.4.400.0000.03318.96
5.4.390.0000.04319.06
5.4.380.0030.03019.07
5.4.370.0000.03718.88
5.4.360.0030.04318.95
5.4.350.0000.04718.96
5.4.340.0070.04319.02
5.4.320.0030.05019.02
5.4.310.0100.04719.05
5.4.300.0030.05718.87
5.4.290.0030.03318.87
5.4.280.0000.04019.13
5.4.270.0030.04319.11
5.4.260.0070.03319.22
5.4.250.0030.04019.06
5.4.240.0100.06318.91
5.4.230.0030.03318.97
5.4.220.0130.03319.11
5.4.210.0100.08719.12
5.4.200.0100.03018.89
5.4.190.0030.07718.87
5.4.180.0070.07319.02
5.4.170.0070.03318.86
5.4.160.0030.07319.04
5.4.150.0070.07318.88
5.4.140.0030.03316.42
5.4.130.0070.04016.20
5.4.120.0100.03016.13
5.4.110.0030.03316.18
5.4.100.0000.04016.45
5.4.90.0100.07016.49
5.4.80.0130.06716.49
5.4.70.0130.06316.42
5.4.60.0070.06316.11
5.4.50.0070.06316.43
5.4.40.0030.03716.46
5.4.30.0000.08016.20
5.4.20.0070.06716.46
5.4.10.0000.04016.41
5.4.00.0000.03715.65
5.3.290.0100.05714.61
5.3.280.0100.07714.59
5.3.270.0070.03314.44
5.3.260.0030.05714.70
5.3.250.0000.07014.55
5.3.240.0030.05314.61
5.3.230.0000.04314.66
5.3.220.0100.03014.46
5.3.210.0030.03714.43
5.3.200.0070.03714.50
5.3.190.0030.04314.41
5.3.180.0030.03714.42
5.3.170.0000.07714.66
5.3.160.0130.07014.39
5.3.150.0030.03314.56
5.3.140.0100.07014.40
5.3.130.0030.07314.62
5.3.120.0170.02314.57
5.3.110.0070.05714.47
5.3.100.0100.03013.88
5.3.90.0030.05313.88
5.3.80.0030.05013.95
5.3.70.0030.04714.09
5.3.60.0030.03314.02
5.3.50.0030.06313.95
5.3.40.0100.07314.00
5.3.30.0100.07013.78
5.3.20.0070.05013.76
5.3.10.0070.02713.48
5.3.00.0030.03713.71
5.2.170.0070.02011.91
5.2.160.0100.05311.91
5.2.150.0100.02311.91
5.2.140.0030.04711.91
5.2.130.0000.04311.91
5.2.120.0170.05311.91
5.2.110.0100.05711.91
5.2.100.0030.03711.91
5.2.90.0000.05011.91
5.2.80.0030.03711.91
5.2.70.0000.03011.91
5.2.60.0030.03711.91
5.2.50.0030.02711.91
5.2.40.0070.02011.91
5.2.30.0070.03311.91
5.2.20.0070.03011.91
5.2.10.0030.02011.91
5.2.00.0000.02311.91
5.1.60.0000.02311.91
5.1.50.0000.02311.91
5.1.40.0030.02311.91
5.1.30.0000.02711.91
5.1.20.0030.02011.91
5.1.10.0030.02011.91
5.1.00.0000.02311.91
5.0.50.0000.02311.91
5.0.40.0030.01311.91
5.0.30.0000.02711.91
5.0.20.0000.01711.91
5.0.10.0030.03011.91
5.0.00.0030.04011.91
4.4.90.0000.02711.91
4.4.80.0000.01311.91
4.4.70.0000.01711.91
4.4.60.0000.01711.91
4.4.50.0000.01311.91
4.4.40.0130.01011.91
4.4.30.0000.01311.91
4.4.20.0000.02011.91
4.4.10.0000.01311.91
4.4.00.0000.04011.91
4.3.110.0030.01011.91
4.3.100.0000.01311.91
4.3.90.0030.03011.91
4.3.80.0000.02311.91
4.3.70.0000.01311.91
4.3.60.0030.01711.91
4.3.50.0000.01311.91
4.3.40.0000.04011.91
4.3.30.0000.02011.91
4.3.20.0000.01711.91
4.3.10.0030.01011.91
4.3.00.0000.01711.91

preferences:
46.41 ms | 400 KiB | 5 Q