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 === "10") { 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.0100.01018.75
8.3.30.0070.00719.02
8.3.20.0070.00020.34
8.3.10.0020.00521.57
8.3.00.0000.00719.05
8.2.170.0100.01022.96
8.2.160.0070.00722.00
8.2.150.0030.00724.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.80
8.2.110.0090.00020.99
8.2.100.0040.01117.97
8.2.90.0050.00317.84
8.2.80.0000.00817.97
8.2.70.0000.00817.92
8.2.60.0000.00718.22
8.2.50.0030.00518.10
8.2.40.0080.00020.97
8.2.30.0070.00019.21
8.2.20.0040.00417.67
8.2.10.0000.00718.01
8.2.00.0000.00717.82
8.1.270.0060.00319.00
8.1.260.0030.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00022.09
8.1.230.0150.00320.80
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0060.00317.35
8.1.180.0000.01018.10
8.1.170.0050.00320.69
8.1.160.0070.00019.02
8.1.150.0070.00018.77
8.1.140.0000.00717.48
8.1.130.0030.00317.86
8.1.120.0040.00417.52
8.1.110.0040.00417.54
8.1.100.0070.00017.54
8.1.90.0000.00717.49
8.1.80.0000.00717.38
8.1.70.0000.00717.37
8.1.60.0030.00717.61
8.1.50.0080.00017.37
8.1.40.0040.00417.56
8.1.30.0040.00417.65
8.1.20.0000.00817.68
8.1.10.0040.00417.52
8.1.00.0040.00417.46
8.0.300.0060.00319.60
8.0.290.0000.00716.75
8.0.280.0040.00418.52
8.0.270.0040.00417.26
8.0.260.0000.00617.27
8.0.250.0040.00416.95
8.0.240.0040.00416.97
8.0.230.0070.00016.85
8.0.220.0070.00016.82
8.0.210.0030.00317.00
8.0.200.0000.00716.85
8.0.190.0000.00716.97
8.0.180.0000.00716.82
8.0.170.0060.00316.82
8.0.160.0040.00417.00
8.0.150.0000.00716.87
8.0.140.0040.00416.92
8.0.130.0000.00813.34
8.0.120.0030.00516.90
8.0.110.0000.00716.84
8.0.100.0040.00416.94
8.0.90.0040.00416.84
8.0.80.0100.01016.96
8.0.70.0070.00016.97
8.0.60.0000.00716.93
8.0.50.0050.00316.96
8.0.30.0130.01017.07
8.0.20.0150.00817.40
8.0.10.0070.00017.14
8.0.00.0100.00716.70
7.4.330.0000.00515.03
7.4.320.0030.00316.48
7.4.300.0000.00716.54
7.4.290.0000.00716.41
7.4.280.0040.00416.58
7.4.270.0060.00016.55
7.4.260.0030.00416.52
7.4.250.0040.00416.58
7.4.240.0040.00316.51
7.4.230.0070.00016.59
7.4.220.0130.00916.55
7.4.210.0140.00716.51
7.4.200.0030.00316.49
7.4.160.0070.00716.68
7.4.150.0070.01717.40
7.4.140.0090.00817.86
7.4.130.0060.01416.55
7.4.120.0120.00516.63
7.4.110.0100.00716.35
7.4.100.0030.01316.60
7.4.90.0030.01316.57
7.4.80.0140.00719.39
7.4.70.0090.01016.67
7.4.60.0110.00616.52
7.4.50.0030.00316.58
7.4.40.0050.01216.69
7.4.30.0070.01116.48
7.4.00.0090.00915.15
7.3.330.0000.00613.34
7.3.320.0050.00013.21
7.3.310.0040.00416.43
7.3.300.0000.00616.24
7.3.290.0090.00716.36
7.3.280.0080.01116.39
7.3.270.0030.01617.40
7.3.260.0070.01016.29
7.3.250.0070.01316.39
7.3.240.0080.00816.55
7.3.230.0130.00616.47
7.3.210.0150.00616.35
7.3.200.0070.01319.39
7.3.190.0140.00316.59
7.3.180.0030.01916.60
7.3.170.0110.00616.59
7.3.160.0120.00316.44
7.2.330.0110.00516.84
7.2.320.0120.00616.59
7.2.310.0080.00816.47
7.2.300.0100.00716.86
7.2.290.0070.01116.72
7.2.60.0040.01216.89
7.2.00.0090.00619.41
7.1.200.0030.00615.90
7.1.100.0030.01017.91
7.1.70.0030.00517.30
7.1.60.0030.00717.13
7.1.50.0100.00716.39
7.1.00.0030.07722.42
7.0.200.0030.00716.55
7.0.140.0070.05722.21
7.0.60.0030.06719.96
7.0.50.0070.07717.80
7.0.40.0100.08320.24
7.0.30.0170.04720.34
7.0.20.0370.07320.33
7.0.10.0030.07320.01
7.0.00.0100.08020.00
5.6.280.0100.06721.07
5.6.210.0030.05020.54
5.6.200.0100.03318.19
5.6.190.0070.08720.63
5.6.180.0230.05320.41
5.6.170.0270.04020.47
5.6.160.0000.09320.51
5.6.150.0130.03318.09
5.6.140.0070.07018.16
5.6.130.0030.04318.09
5.6.120.0070.07721.00
5.6.110.0170.07320.96
5.6.100.0100.07720.98
5.6.90.0030.07721.03
5.6.80.0130.06020.44
5.5.350.0230.08020.42
5.5.340.0100.06017.91
5.5.330.0070.04720.37
5.5.320.0170.05720.24
5.5.310.0300.05720.29
5.5.300.0030.07717.94
5.5.290.0030.05317.88
5.5.280.0100.08320.77
5.5.270.0170.07320.72
5.5.260.0000.04720.86
5.5.250.0030.08020.58
5.5.240.0100.07020.36
5.4.450.0630.05019.42
5.4.440.0170.05719.37
5.4.430.0100.05719.51
5.4.420.0270.06019.52
5.4.410.0170.05319.28
5.4.400.0230.04719.13
5.4.390.0230.04318.82
5.4.380.0130.05718.59
5.4.370.0230.04718.53
5.4.360.0130.05318.82
5.4.350.0170.05718.74
5.4.340.0230.04318.50
5.4.320.0130.05718.52
5.4.310.0170.05318.49
5.4.300.0070.06318.72
5.4.290.0130.05318.69
5.4.280.0100.05718.62
5.4.270.0230.04718.71
5.4.260.0230.05718.73
5.4.250.0200.05018.70
5.4.240.0100.06018.79
5.4.230.0230.04718.61
5.4.220.0200.07018.48
5.4.210.0200.05718.68
5.4.200.0170.05016.48
5.4.190.0200.05018.66
5.4.180.0170.05318.52
5.4.170.0100.06018.66
5.4.160.0170.05018.70
5.4.150.0130.05718.61
5.4.140.0170.05316.18
5.4.130.0170.05016.15
5.4.120.0170.05016.08
5.4.110.0130.05016.15
5.4.100.0170.05016.15
5.4.90.0100.05716.13
5.4.80.0130.05016.13
5.4.70.0130.05715.98
5.4.60.0130.06016.03
5.4.50.0130.05016.32
5.4.40.0230.04316.28
5.4.30.0170.05016.11
5.4.20.0230.04716.27
5.4.10.0330.04316.29
5.4.00.0270.04315.53
5.3.290.0130.06014.67
5.3.280.0130.05314.64
5.3.270.0000.07014.65
5.3.260.0230.05314.70
5.3.250.0130.05714.51
5.3.240.0130.05314.55
5.3.230.0130.05314.65
5.3.220.0200.04714.66
5.3.210.0130.05714.62
5.3.200.0170.05014.47
5.3.190.0170.05314.68
5.3.180.0170.05014.58
5.3.170.0100.06314.55
5.3.160.0130.05314.49
5.3.150.0170.05014.50
5.3.140.0170.05014.65
5.3.130.0200.05014.54
5.3.120.0200.06014.62
5.3.110.0170.05714.64
5.3.100.0130.05314.11
5.3.90.0230.06714.00
5.3.80.0130.05314.00
5.3.70.0130.06013.98
5.3.60.0170.05713.91
5.3.50.0200.04713.93
5.3.40.0130.05313.91
5.3.30.0130.05013.94
5.3.20.0200.04713.59
5.3.10.0130.05013.57
5.3.00.0230.04313.57
5.2.170.0270.03011.09
5.2.160.0200.03311.10
5.2.150.0130.04311.13
5.2.140.0170.03711.17
5.2.130.0100.04011.11
5.2.120.0100.04011.14
5.2.110.0170.04011.24
5.2.100.0100.04311.05
5.2.90.0100.04011.09
5.2.80.0130.04011.06
5.2.70.0230.03011.01
5.2.60.0130.04011.09
5.2.50.0170.03710.98
5.2.40.0170.03311.17
5.2.30.0100.04010.95
5.2.20.0100.04011.09
5.2.10.0030.05010.82
5.2.00.0100.04010.72
5.1.60.0170.03310.01
5.1.50.0170.0309.99
5.1.40.0030.0409.99
5.1.30.0170.03010.37
5.1.20.0130.03710.46
5.1.10.0070.03710.20
5.1.00.0130.03310.12
5.0.50.0170.0178.59
5.0.40.0070.0278.45
5.0.30.0030.0478.29
5.0.20.0070.0308.32
5.0.10.0130.0208.16
5.0.00.0070.0438.29
4.4.90.0070.0205.90
4.4.80.0070.0205.87
4.4.70.0170.0175.81
4.4.60.0070.0275.86
4.4.50.0030.0275.95
4.4.40.0070.0335.94
4.4.30.0030.0235.91
4.4.20.0130.0135.94
4.4.10.0030.0235.97
4.4.00.0070.0335.93
4.3.110.0100.0205.83
4.3.100.0100.0175.78
4.3.90.0100.0175.81
4.3.80.0070.0335.79
4.3.70.0070.0205.76
4.3.60.0100.0175.82
4.3.50.0070.0205.87
4.3.40.0030.0375.88
4.3.30.0100.0204.59
4.3.20.0030.0234.54
4.3.10.0070.0174.52
4.3.00.0030.0237.76

preferences:
44.27 ms | 400 KiB | 5 Q