3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var="20070601"; if (intval($var)) echo "it's safe"; echo '$var='.$var; echo "<br>"; $var1="1 union select 1,1,1 from admin"; if (intval($var1)) echo "it's safe too"; echo '$var1='.$var1;

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.390.0170.05718.58
5.4.380.0300.04718.69
5.4.370.0200.05318.63
5.4.360.0130.06718.58
5.4.350.0200.06018.75
5.4.340.0270.04718.78
5.4.320.0230.06018.69
5.4.310.0230.05318.57
5.4.300.0200.05318.47
5.4.290.0270.04718.55
5.4.280.0200.05318.80
5.4.270.0200.05018.43
5.4.260.0270.04318.50
5.4.250.0370.04018.43
5.4.240.0230.05718.55
5.4.230.0130.05718.77
5.4.220.0200.05318.83
5.4.210.0200.07018.43
5.4.200.0200.05716.64
5.4.190.0130.06318.82
5.4.180.0170.05718.68
5.4.170.0370.06018.76
5.4.160.0300.04018.56
5.4.150.0270.06318.69
5.4.140.0170.07716.43
5.4.130.0130.05316.28
5.4.120.0130.05016.19
5.4.110.0200.05016.27
5.4.100.0170.06016.43
5.4.90.0330.05716.30
5.4.80.0130.07316.18
5.4.70.0130.07716.31
5.4.60.0330.05316.14
5.4.50.0230.06316.34
5.4.40.0200.05316.16
5.4.30.0200.04716.25
5.4.20.0170.05316.15
5.4.10.0170.05016.21
5.4.00.0170.05015.75
5.3.290.0330.04714.59
5.3.280.0200.05014.51
5.3.270.0170.05314.52
5.3.260.0130.05714.68
5.3.250.0130.05714.61
5.3.240.0370.05714.50
5.3.230.0200.05014.65
5.3.220.0130.05314.55
5.3.210.0230.05014.48
5.3.200.0300.04314.62
5.3.190.0270.05714.46
5.3.180.0270.04014.48
5.3.170.0070.06314.64
5.3.160.0270.04314.65
5.3.150.0100.06014.54
5.3.140.0130.05714.54
5.3.130.0200.05314.54
5.3.120.0170.05314.55
5.3.110.0230.05314.64
5.3.100.0130.06014.05
5.3.90.0200.06014.05
5.3.80.0400.05314.00
5.3.70.0130.05713.99
5.3.60.0200.05014.09
5.3.50.0200.06314.03
5.3.40.0100.06014.03
5.3.30.0200.04314.00
5.3.20.0170.05313.72
5.3.10.0330.03313.59
5.3.00.0200.05013.59
5.2.170.0200.03711.06
5.2.160.0100.04711.06
5.2.150.0170.04011.18
5.2.140.0230.04311.29
5.2.130.0130.05711.07
5.2.120.0170.03711.12
5.2.110.0130.04011.16
5.2.100.0230.03011.28
5.2.90.0130.04011.06
5.2.80.0100.04711.13
5.2.70.0130.04311.07
5.2.60.0170.04311.03
5.2.50.0230.03310.95
5.2.40.0130.03710.96
5.2.30.0170.05310.94
5.2.20.0170.03311.07
5.2.10.0130.04010.82
5.2.00.0130.04010.83
5.1.60.0100.03310.09
5.1.50.0130.03710.12
5.1.40.0070.03710.12
5.1.30.0100.03710.38
5.1.20.0130.04310.48
5.1.10.0230.03710.08
5.1.00.0170.04310.09
5.0.50.0200.0278.54
5.0.40.0070.0308.42
5.0.30.0070.0438.29
5.0.20.0070.0308.21
5.0.10.0070.0308.35
5.0.00.0070.0438.28
4.4.90.0100.0175.92
4.4.80.0030.0235.90
4.4.70.0030.0235.88
4.4.60.0070.0235.91
4.4.50.0070.0305.91
4.4.40.0130.0335.89
4.4.30.0030.0235.89
4.4.20.0000.0305.96
4.4.10.0130.0205.99
4.4.00.0030.0375.93
4.3.110.0000.0305.75
4.3.100.0070.0235.84
4.3.90.0070.0235.81
4.3.80.0070.0335.79
4.3.70.0070.0305.80
4.3.60.0130.0235.91
4.3.50.0100.0205.82
4.3.40.0000.0405.76
4.3.30.0030.0234.56
4.3.20.0030.0234.57
4.3.10.0030.0234.57
4.3.00.0170.0177.30

preferences:
147.19 ms | 1394 KiB | 7 Q