3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xyz[]="a"; var_dump($xyz); if($xyz != '') { echo "xyz is not empty! good to go!\n"; $pw1 = 'my cool password keep it secrete please'; $pw2 = 'some other password'; $abc = strcmp($xyz, $pw1); if ($abc == 0) { echo "yep $pw1 is the right password strcmp said so"; } $def = strcmp($xyz, $pw2); if ($def == 0) { echo "yep $pw2 is the correct password too, strcmp said so"; } $ghi = strcmp( }

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.03719.16
5.4.310.0300.06319.22
5.4.300.0230.06719.23
5.4.290.0270.04019.05
5.4.280.0330.05319.31
5.4.270.0230.05019.06
5.4.260.0230.06019.16
5.4.250.0270.07319.09
5.4.240.0300.04319.22
5.4.230.0370.06319.31
5.4.220.0270.04019.25
5.4.210.0300.03318.96
5.4.200.0300.06718.84
5.4.190.0370.04719.07
5.4.180.0170.04318.88
5.4.170.0430.06019.17
5.4.160.0230.08019.04
5.4.150.0300.05019.07
5.4.140.0170.05316.66
5.4.130.0370.03316.32
5.4.120.0370.06016.29
5.4.110.0200.04716.40
5.4.100.0330.07016.27
5.4.90.0300.06716.45
5.4.80.0230.05316.54
5.4.70.0370.06016.17
5.4.60.0300.04316.53
5.4.50.0270.06716.25
5.4.40.0330.03316.34
5.4.30.0300.07016.23
5.4.20.0230.03316.42
5.4.10.0230.04716.37
5.4.00.0300.05315.89
5.3.290.0230.04014.70
5.3.280.0330.07014.66
5.3.270.0270.04014.59
5.3.260.0300.04314.47
5.3.250.0270.04014.47
5.3.240.0300.06014.45
5.3.230.0230.07014.44
5.3.220.0270.05314.53
5.3.210.0270.07014.52
5.3.200.0300.04314.53
5.3.190.0270.07314.52
5.3.180.0330.05714.48
5.3.170.0300.04314.45
5.3.160.0270.05714.52
5.3.150.0330.04014.62
5.3.140.0300.07014.61
5.3.130.0230.06314.42
5.3.120.0270.04714.41
5.3.110.0200.07714.54
5.3.100.0230.04713.92
5.3.90.0300.04013.98
5.3.80.0300.06713.80
5.3.70.0270.03313.86
5.3.60.0270.03313.91
5.3.50.0300.03013.79
5.3.40.0400.05714.02
5.3.30.0230.06713.69
5.3.20.0300.04313.63
5.3.10.0330.04713.63
5.3.00.0270.05013.73
5.2.170.0230.05711.00
5.2.160.0230.05711.01
5.2.150.0400.04711.00
5.2.140.0200.04710.99
5.2.130.0230.04710.95
5.2.120.0230.04710.95
5.2.110.0330.02710.94
5.2.100.0230.06010.99
5.2.90.0230.05311.16
5.2.80.0130.04010.95
5.2.70.0170.06311.16
5.2.60.0270.03310.90
5.2.50.0230.06310.95
5.2.40.0270.04710.86
5.2.30.0300.05011.02
5.2.20.0200.05310.81
5.2.10.0200.05710.77
5.2.00.0170.05710.75
5.1.60.0130.0309.99
5.1.50.0270.0409.88
5.1.40.0200.02710.15
5.1.30.0170.04710.29
5.1.20.0230.04010.36
5.1.10.0300.0379.98
5.1.00.0230.05010.01
5.0.50.0100.0409.26
5.0.40.0130.0209.26
5.0.30.0130.0539.26
5.0.20.0130.0439.26
5.0.10.0200.0339.26
5.0.00.0130.0639.26
4.4.90.0100.0339.26
4.4.80.0170.0309.26
4.4.70.0100.0339.26
4.4.60.0100.0309.26
4.4.50.0130.0309.26
4.4.40.0100.0239.26
4.4.30.0030.0279.26
4.4.20.0100.0239.26
4.4.10.0030.0239.26
4.4.00.0070.0379.26
4.3.110.0070.0209.26
4.3.100.0070.0309.26
4.3.90.0070.0209.26
4.3.80.0100.0479.26
4.3.70.0130.0309.26
4.3.60.0100.0339.26
4.3.50.0070.0309.26
4.3.40.0170.0409.26
4.3.30.0030.0379.26
4.3.20.0000.0409.26
4.3.10.0100.0339.26
4.3.00.0070.0179.26

preferences:
144.38 ms | 1386 KiB | 7 Q