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.0300.06718.98
5.4.310.0270.07319.08
5.4.300.0270.04019.20
5.4.290.0230.04019.26
5.4.280.0270.05718.98
5.4.270.0300.06719.15
5.4.260.0300.06719.26
5.4.250.0370.07019.19
5.4.240.0300.07718.86
5.4.230.0300.05018.86
5.4.220.0230.08019.13
5.4.210.0370.06319.14
5.4.200.0330.06319.07
5.4.190.0270.07019.21
5.4.180.0300.06719.07
5.4.170.0230.06019.13
5.4.160.0300.05718.92
5.4.150.0270.04019.08
5.4.140.0370.05016.50
5.4.130.0270.04316.27
5.4.120.0230.06016.46
5.4.110.0230.07716.28
5.4.100.0230.04316.54
5.4.90.0300.07016.40
5.4.80.0400.06016.54
5.4.70.0400.05316.34
5.4.60.0300.06016.25
5.4.50.0300.05716.56
5.4.40.0330.04016.23
5.4.30.0200.04716.53
5.4.20.0400.06316.43
5.4.10.0230.05016.31
5.4.00.0270.04315.71
5.3.290.0230.06314.62
5.3.280.0230.07314.47
5.3.270.0230.03714.63
5.3.260.0200.05314.70
5.3.250.0270.05014.45
5.3.240.0370.06314.63
5.3.230.0170.04714.55
5.3.220.0270.05314.62
5.3.210.0200.04314.43
5.3.200.0270.05014.49
5.3.190.0270.07714.47
5.3.180.0300.04714.40
5.3.170.0300.07014.67
5.3.160.0270.06314.50
5.3.150.0300.03314.51
5.3.140.0230.05014.58
5.3.130.0300.05314.41
5.3.120.0270.07014.41
5.3.110.0300.06314.41
5.3.100.0270.07014.13
5.3.90.0370.04013.97
5.3.80.0170.04313.85
5.3.70.0270.07014.04
5.3.60.0430.03313.97
5.3.50.0330.06013.80
5.3.40.0230.04313.85
5.3.30.0270.05713.76
5.3.20.0300.06013.67
5.3.10.0270.07013.54
5.3.00.0370.06013.49
5.2.170.0200.05311.08
5.2.160.0230.04711.15
5.2.150.0270.04711.23
5.2.140.0330.04710.98
5.2.130.0230.03310.94
5.2.120.0270.05310.94
5.2.110.0230.05010.94
5.2.100.0300.04310.96
5.2.90.0200.05310.96
5.2.80.0270.05711.10
5.2.70.0270.05311.25
5.2.60.0200.06011.10
5.2.50.0300.03310.86
5.2.40.0200.04710.88
5.2.30.0200.05710.81
5.2.20.0200.05710.86
5.2.10.0130.04010.80
5.2.00.0200.06010.79
5.1.60.0170.05010.11
5.1.50.0170.04310.00
5.1.40.0200.04710.00
5.1.30.0170.03710.28
5.1.20.0170.03310.26
5.1.10.0170.03010.09
5.1.00.0100.03010.00
5.0.50.0070.02710.00
5.0.40.0070.05010.00
5.0.30.0070.06310.00
5.0.20.0070.02710.00
5.0.10.0130.03710.00
5.0.00.0130.03710.00
4.4.90.0130.02710.00
4.4.80.0100.02010.00
4.4.70.0070.03310.00
4.4.60.0100.03310.00
4.4.50.0130.02310.00
4.4.40.0100.05010.00
4.4.30.0100.03310.00
4.4.20.0030.02010.00
4.4.10.0070.01710.00
4.4.00.0100.02310.00
4.3.110.0100.03310.00
4.3.100.0130.01710.00
4.3.90.0070.02010.00
4.3.80.0070.05310.00
4.3.70.0100.02710.00
4.3.60.0100.03010.00
4.3.50.0100.02710.00
4.3.40.0130.04010.00
4.3.30.0070.03310.00
4.3.20.0030.02310.00
4.3.10.0070.02710.00
4.3.00.0030.02310.00

preferences:
134.45 ms | 1398 KiB | 7 Q