3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(count(array_keys(array_search('foo' , array('foo', 'bar', 'foo'true))));

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)
5.4.320.0200.05018.95
5.4.310.0200.03719.12
5.4.300.0130.04018.85
5.4.290.0130.04019.08
5.4.280.0170.04019.16
5.4.270.0170.05019.04
5.4.260.0230.04318.98
5.4.250.0230.03319.07
5.4.240.0230.04719.19
5.4.230.0270.03018.97
5.4.220.0200.05718.99
5.4.210.0270.04018.99
5.4.200.0270.06719.08
5.4.190.0230.04019.11
5.4.180.0270.06719.20
5.4.170.0330.06719.23
5.4.160.0230.03719.06
5.4.150.0170.05319.07
5.4.140.0270.06316.52
5.4.130.0230.07316.38
5.4.120.0170.06316.45
5.4.110.0270.04716.55
5.4.100.0130.04716.54
5.4.90.0300.05716.54
5.4.80.0230.04716.54
5.4.70.0230.03316.44
5.4.60.0200.03316.34
5.4.50.0230.07016.53
5.4.40.0130.05016.22
5.4.30.0270.06016.50
5.4.20.0300.04016.42
5.4.10.0270.06016.16
5.4.00.0170.05715.80
5.3.290.0130.04714.52
5.3.280.0300.03714.44
5.3.270.0370.03014.45
5.3.260.0230.05314.54
5.3.250.0200.03714.51
5.3.240.0230.06314.45
5.3.230.0300.05314.58
5.3.220.0170.05714.48
5.3.210.0230.07714.40
5.3.200.0200.05714.51
5.3.190.0200.04714.54
5.3.180.0270.07014.40
5.3.170.0170.04014.50
5.3.160.0170.03714.41
5.3.150.0230.04714.58
5.3.140.0230.04314.43
5.3.130.0230.06714.50
5.3.120.0200.07014.38
5.3.110.0370.03714.45
5.3.100.0270.07013.98
5.3.90.0270.04013.86
5.3.80.0270.06713.96
5.3.70.0270.04314.11
5.3.60.0330.06014.02
5.3.50.0200.07713.72
5.3.40.0270.06713.89
5.3.30.0170.05713.86
5.3.20.0230.03013.54
5.3.10.0330.05713.46
5.3.00.0230.06013.41
5.2.170.0170.05312.29
5.2.160.0200.05712.29
5.2.150.0100.03712.29
5.2.140.0170.06012.29
5.2.130.0200.03312.29
5.2.120.0170.03012.29
5.2.110.0170.03312.29
5.2.100.0170.03312.29
5.2.90.0230.02012.29
5.2.80.0130.03012.29
5.2.70.0170.04012.29
5.2.60.0100.03012.29
5.2.50.0270.03312.29
5.2.40.0070.03712.29
5.2.30.0130.02712.29
5.2.20.0130.02712.29
5.2.10.0070.03312.29
5.2.00.0200.01712.29
5.1.60.0100.02712.29
5.1.50.0200.02012.29
5.1.40.0130.02312.29
5.1.30.0130.02712.29
5.1.20.0070.03012.29
5.1.10.0130.03012.29
5.1.00.0170.02012.29
5.0.50.0070.03012.29
5.0.40.0130.04012.29
5.0.30.0100.04712.29
5.0.20.0100.03012.29
5.0.10.0100.02012.29
5.0.00.0070.03312.29
4.4.90.0070.03712.29
4.4.80.0070.02712.29
4.4.70.0070.02312.29
4.4.60.0100.01312.29
4.4.50.0070.02312.29
4.4.40.0070.04712.29
4.4.30.0100.01712.29
4.4.20.0130.03312.29
4.4.10.0100.03712.29
4.4.00.0070.05712.29
4.3.110.0170.02712.29
4.3.100.0130.01712.29
4.3.90.0070.03012.29
4.3.80.0130.02012.29
4.3.70.0130.03012.29
4.3.60.0070.02712.29
4.3.50.0170.02312.29
4.3.40.0030.03012.29
4.3.30.0070.02712.29
4.3.20.0030.01712.29
4.3.10.0030.02712.29
4.3.00.0070.01312.29

preferences:
141.41 ms | 1386 KiB | 7 Q