3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = "micha<?php </textarea>l' OR 1=1"; $findme = "="; $pos = strpos($mystring, $findme); // Note our use of ===. Simply == would not work as expected // because the position of 'a' was the 0th (first) character. if (strpos($mystring, $findme) === false) { //echo "The string '$findme' was not found in the string '$mystring'"; echo 'nenasiel som :('; } else { echo 'je tam'; //echo "The string '$findme' was found in the string '$mystring'"; //echo " and exists at position $pos"; } echo "\n"; echo 'This ', 'string ', 'was ', 'made ', 'with multiple parameters.', chr(10); echo 'This ' . 'string ' . 'was ' . 'made ' . 'with concatenation.' . "\n"; $forbiddenChar = array("<", ">", "'", "=", "--"); echo $forbiddenChar[0] . ", ". $forbiddenChar[1] . ", " . $forbiddenChar[2] . ", " . $forbiddenChar[3] . ", " . $forbiddenChar[4] . "\n"; ?>

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)
8.3.60.0180.00316.63
8.3.50.0100.00716.47
8.3.40.0070.00718.97
8.3.30.0070.00718.60
8.3.20.0060.00320.22
8.3.10.0040.00421.90
8.3.00.0000.00819.13
8.2.180.0100.01018.23
8.2.170.0110.01122.96
8.2.160.0070.00721.25
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00421.08
8.2.120.0070.00026.35
8.2.110.0150.00720.96
8.2.100.0060.00618.22
8.2.90.0050.00319.22
8.2.80.0030.00617.97
8.2.70.0030.00917.63
8.2.60.0040.00418.16
8.2.50.0030.00518.10
8.2.40.0050.00320.42
8.2.30.0040.00419.36
8.2.20.0030.00518.17
8.2.10.0000.00817.96
8.2.00.0000.00718.11
8.1.280.0120.00625.92
8.1.270.0070.00022.01
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00523.92
8.1.230.0030.00719.07
8.1.220.0000.00817.76
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00517.22
8.1.180.0080.00318.10
8.1.170.0030.00618.52
8.1.160.0070.00019.04
8.1.150.0030.00620.73
8.1.140.0040.00419.57
8.1.130.0000.00718.88
8.1.120.0030.00317.53
8.1.110.0040.00417.52
8.1.100.0050.00317.47
8.1.90.0000.01017.46
8.1.80.0040.00417.46
8.1.70.0030.00317.36
8.1.60.0030.00617.65
8.1.50.0000.00717.60
8.1.40.0080.00017.54
8.1.30.0000.00817.68
8.1.20.0080.00017.56
8.1.10.0050.00217.63
8.1.00.0070.00017.55
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0000.00718.38
8.0.270.0030.00317.33
8.0.260.0070.00016.85
8.0.250.0070.00016.87
8.0.240.0020.00817.00
8.0.230.0030.00317.04
8.0.220.0070.00016.93
8.0.210.0030.00316.96
8.0.200.0000.00716.93
8.0.190.0070.00216.95
8.0.180.0040.00416.85
8.0.170.0040.00416.98
8.0.160.0000.00816.99
8.0.150.0030.00316.89
8.0.140.0030.00316.77
8.0.130.0050.00013.31
8.0.120.0040.00416.88
8.0.110.0000.00816.95
8.0.100.0040.00416.79
8.0.90.0020.00516.88
8.0.80.0040.01816.97
8.0.70.0040.00416.80
8.0.60.0040.00416.95
8.0.50.0030.00616.74
8.0.30.0140.00617.08
8.0.20.0150.00417.40
8.0.10.0000.00717.05
8.0.00.0080.00916.61
7.4.330.0050.00015.55
7.4.320.0000.00616.55
7.4.300.0000.00616.53
7.4.290.0060.00316.60
7.4.280.0060.00316.61
7.4.270.0000.00716.52
7.4.260.0080.00016.57
7.4.250.0000.00716.58
7.4.240.0000.00716.40
7.4.230.0000.00716.42
7.4.220.0170.00616.58
7.4.210.0100.00316.65
7.4.200.0070.00016.61
7.4.160.0120.00516.54
7.4.150.0120.01617.40
7.4.140.0130.00417.86
7.4.130.0140.01016.57
7.4.120.0060.01316.64
7.4.110.0080.00916.38
7.4.100.0100.00716.54
7.4.90.0100.00816.43
7.4.80.0090.01219.39
7.4.70.0030.01316.62
7.4.60.0080.00916.32
7.4.50.0060.00916.36
7.4.40.0150.00616.63
7.4.30.0120.00616.36
7.4.10.0100.00614.89
7.4.00.0070.00915.00
7.3.330.0050.00013.23
7.3.320.0030.00313.22
7.3.310.0040.00416.29
7.3.300.0000.00616.18
7.3.290.0070.00916.24
7.3.280.0090.00716.21
7.3.270.0110.00617.40
7.3.260.0100.00716.42
7.3.250.0120.00816.40
7.3.240.0090.00716.41
7.3.230.0070.01016.36
7.3.210.0080.00816.59
7.3.200.0120.00616.34
7.3.190.0060.01716.48
7.3.180.0100.01216.34
7.3.170.0120.00616.46
7.3.160.0090.00616.42
7.3.130.0060.01014.65
7.3.120.0100.00814.70
7.3.110.0050.00914.64
7.3.100.0030.01214.67
7.3.90.0070.00714.76
7.3.80.0040.00714.69
7.3.70.0050.00914.84
7.3.60.0080.00614.77
7.3.50.0070.00914.83
7.3.40.0020.01214.58
7.3.30.0050.01014.60
7.3.20.0080.00516.60
7.3.10.0080.00716.47
7.3.00.0070.00616.63
7.2.330.0090.01216.58
7.2.320.0080.00816.80
7.2.310.0140.00316.38
7.2.300.0040.01416.77
7.2.290.0030.01316.58
7.2.260.0080.01015.06
7.2.250.0070.01115.17
7.2.240.0050.00915.07
7.2.230.0030.01414.90
7.2.220.0030.01515.10
7.2.210.0040.00715.07
7.2.200.0090.00614.95
7.2.190.0090.00714.99
7.2.180.0090.00315.13
7.2.170.0050.00714.90
7.2.160.0080.00714.95
7.2.150.0090.00716.85
7.2.140.0100.00616.78
7.2.130.0070.00816.77
7.2.120.0080.00716.74
7.2.110.0090.00516.90
7.2.100.0060.00616.92
7.2.90.0050.01116.68
7.2.80.0140.00217.11
7.2.70.0030.01016.74
7.2.60.0100.00716.82
7.2.50.0100.00716.96
7.2.40.0060.00616.87
7.2.30.0060.00616.98
7.2.20.0080.00716.96
7.2.10.0080.00816.78
7.2.00.0110.00617.67
7.1.330.0030.00715.88
7.1.320.0020.01415.64
7.1.310.0040.00916.01
7.1.300.0040.00715.47
7.1.290.0060.00815.55
7.1.280.0060.01115.62
7.1.270.0020.01115.36
7.1.260.0030.00915.83
7.1.250.0040.00915.70
7.1.240.0050.00915.77
7.1.230.0060.00615.74
7.1.220.0060.00615.78
7.1.210.0050.00515.80
7.1.200.0130.00315.60
7.1.190.0030.00915.87
7.1.180.0040.00815.78
7.1.170.0080.00815.75
7.1.160.0080.00415.86
7.1.150.0060.00615.78
7.1.140.0030.01015.73
7.1.130.0060.00315.90
7.1.120.0040.01115.63
7.1.110.0080.00315.82
7.1.100.0050.00716.62
7.1.90.0020.01015.76
7.1.80.0070.00615.81
7.1.70.0080.00416.07
7.1.60.0120.00822.31
7.1.50.0120.00822.13
7.1.40.0080.01021.94
7.1.30.0090.00721.91
7.1.20.0150.00421.89
7.1.10.0030.00716.11
7.1.00.0050.00916.02
7.0.330.0050.00915.04
7.0.320.0030.00615.31
7.0.310.0030.00615.10
7.0.300.0050.01015.23
7.0.290.0050.00815.27
7.0.280.0030.00815.26
7.0.270.0000.01215.08
7.0.260.0020.01215.11
7.0.250.0070.00715.17
7.0.240.0050.00915.32
7.0.230.0080.00715.35
7.0.220.0090.00515.49
7.0.210.0090.00315.33
7.0.200.0090.00315.84
7.0.190.0060.00815.82
7.0.180.0060.00815.71
7.0.170.0050.01015.59
7.0.160.0040.00815.54
7.0.150.0030.00915.62
7.0.140.0080.00415.47
7.0.130.0030.01015.71
7.0.120.0060.00615.85
7.0.110.0080.00415.62
7.0.100.0030.01215.67
7.0.90.0070.00615.51
7.0.80.0020.00915.62
7.0.70.0060.00615.63
7.0.60.0070.00615.52
7.0.50.0050.00815.74
7.0.40.0030.00814.48
7.0.30.0040.00814.58
7.0.20.0070.00314.40
7.0.10.0050.00714.42
7.0.00.0050.00714.37
5.6.400.0080.00614.23
5.6.390.0080.00714.29
5.6.380.0030.00914.51
5.6.370.0070.00713.98
5.6.360.0060.00614.49
5.6.350.0030.01014.16
5.6.340.0050.00814.42
5.6.330.0000.01214.47
5.6.320.0090.00614.57
5.6.310.0050.00714.58
5.6.300.0090.00514.04
5.6.290.0060.00714.35
5.6.280.0070.00714.54
5.6.270.0040.00914.29
5.6.260.0030.01014.33
5.6.250.0080.00514.40
5.6.240.0090.00514.34
5.6.230.0070.00514.26
5.6.220.0070.00614.46
5.6.210.0090.00614.35
5.6.200.0040.00814.10
5.6.190.0090.00414.37
5.6.180.0020.00914.38
5.6.170.0030.00714.29
5.6.160.0080.00614.37
5.6.150.0020.01114.19
5.6.140.0030.01014.07
5.6.130.0060.00614.45
5.6.120.0060.00614.16
5.6.110.0030.01114.47
5.6.100.0060.00514.54
5.6.90.0030.01014.55
5.6.80.0080.00414.13
5.6.70.0050.00814.40
5.6.60.0050.01114.21
5.6.50.0080.00814.30
5.6.40.0070.00714.19
5.6.30.0060.00614.42
5.6.20.0040.00714.11
5.6.10.0090.00414.45
5.6.00.0050.00814.29

preferences:
48.03 ms | 400 KiB | 5 Q