3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('button','chechbox','color','text','password','url','radio','submit'); $condition = 0; $type='colors' foreach ($array as $value){ if ($value==$type){ $condition +=1 } }

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.6.120.0100.08321.00
5.6.110.0130.04321.11
5.6.100.0100.03320.88
5.6.90.0070.08720.96
5.6.80.0000.04020.40
5.6.70.4070.04020.49
5.5.280.0030.05020.89
5.5.270.0130.04320.67
5.5.260.0070.06320.73
5.5.250.0100.07720.68
5.5.240.0300.07020.11
5.4.440.0530.05719.52
5.4.430.0570.05319.53
5.4.420.0530.05719.58
5.4.410.0700.04019.35
5.4.400.0570.05319.31
5.4.390.0770.06018.89
5.4.380.0530.06319.16
5.4.370.0630.04319.17
5.4.360.0670.04319.29
5.4.350.0400.06719.17
5.4.340.0530.05319.16
5.4.320.0770.06019.16
5.4.310.0570.05019.16
5.4.300.0630.04319.25
5.4.290.0600.04719.19
5.4.280.0570.05719.09
5.4.270.0470.06019.11
5.4.260.0530.05319.20
5.4.250.0670.04319.10
5.4.240.0570.05019.32
5.4.230.0530.05319.22
5.4.220.0570.05319.25
5.4.210.0470.06018.99
5.4.200.0500.05716.86
5.4.190.0530.05018.91
5.4.180.0530.05318.90
5.4.170.0530.05719.19
5.4.160.0570.06019.11
5.4.150.0670.05718.93
5.4.140.0770.04316.31
5.4.130.0730.05016.29
5.4.120.0670.03716.37
5.4.110.0700.04716.25
5.4.100.0500.05716.58
5.4.90.0630.04316.66
5.4.80.0630.04016.24
5.4.70.0530.05016.60
5.4.60.0530.05316.59
5.4.50.0600.04316.41
5.4.40.0630.05716.43
5.4.30.0570.05016.21
5.4.20.0600.04716.59
5.4.10.0670.04316.54
5.4.00.0600.05316.04
5.3.290.0770.04714.50
5.3.280.0730.04714.50
5.3.270.0700.06314.61
5.3.260.0700.05014.61
5.3.250.0700.04714.57
5.3.240.0530.05014.43
5.3.230.0530.06014.43
5.3.220.0600.04714.48
5.3.210.0700.04014.36
5.3.200.0530.05014.59
5.3.190.0530.05314.50
5.3.180.0500.05314.39
5.3.170.0470.05714.36
5.3.160.0630.04714.49
5.3.150.0630.04314.48
5.3.140.0570.06014.59
5.3.130.0630.04314.34
5.3.120.0530.05714.41
5.3.110.0630.05014.53
5.3.100.0570.04713.89
5.3.90.0600.06013.94
5.3.80.0530.05313.87
5.3.70.0600.06013.96
5.3.60.0530.05013.87
5.3.50.0500.05013.86
5.3.40.0470.06013.78
5.3.30.0400.05713.84
5.3.20.0600.04313.53
5.3.10.0570.04013.52
5.3.00.0500.04713.43
5.2.170.0400.04711.04
5.2.160.0370.04011.05
5.2.150.0530.04311.24
5.2.140.0500.04011.08
5.2.130.0530.03711.10
5.2.120.0570.03710.95
5.2.110.0430.03711.11
5.2.100.0500.03310.95
5.2.90.0500.03011.11
5.2.80.0530.04011.00
5.2.70.0500.04311.01
5.2.60.0430.04310.91
5.2.50.0370.04710.95
5.2.40.0400.03311.09
5.2.30.0370.04010.98
5.2.20.0330.04010.91
5.2.10.0330.03710.84
5.2.00.0300.04310.70
5.1.60.0370.03010.07
5.1.50.0330.0309.91
5.1.40.0270.03710.06
5.1.30.0300.03710.43
5.1.20.0400.03010.26
5.1.10.0370.03010.11
5.1.00.0330.0339.95
5.0.50.0200.0278.43
5.0.40.0230.0238.39
5.0.30.0200.0438.31
5.0.20.0200.0238.25
5.0.10.0230.0278.16
5.0.00.0200.0438.02
4.4.90.0170.0205.91
4.4.80.0170.0205.73
4.4.70.0200.0175.76
4.4.60.0230.0175.84
4.4.50.0130.0235.74
4.4.40.0230.0305.77
4.4.30.0170.0205.77
4.4.20.0200.0205.88
4.4.10.0200.0205.91
4.4.00.0130.0375.89
4.3.110.0170.0205.70
4.3.100.0170.0235.73
4.3.90.0170.0205.83
4.3.80.0170.0335.64
4.3.70.0130.0235.83
4.3.60.0130.0235.73
4.3.50.0130.0235.78
4.3.40.0200.0275.61
4.3.30.0070.0234.54
4.3.20.0070.0234.39
4.3.10.0070.0234.46
4.3.00.0000.0237.34

preferences:
147.88 ms | 1394 KiB | 7 Q