3v4l.org

run code in 300+ PHP versions simultaneously
<?php function contains_prohibited($string, $chars) { return strcspn($string, $chars) < strlen($string); } $string = "Prohibited symbols are ampersands, dollar signs, and semicolons."; var_dump(contains_prohibited($string, "&$;")); $string .= "And commas."; var_dump(contains_prohibited($string, "&$;,"));

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.4.120.0110.00920.52
8.4.110.0120.00718.71
8.4.100.0140.00717.57
8.4.90.0120.00720.71
8.4.80.0110.00818.79
8.4.70.0070.00820.60
8.4.60.0120.01020.37
8.4.50.0130.00819.34
8.4.40.0100.01019.40
8.4.30.0110.00720.43
8.4.20.0130.00620.59
8.4.10.0100.00719.48
8.3.250.0070.00320.77
8.3.240.0120.00616.73
8.3.230.0120.00716.41
8.3.220.0120.00919.07
8.3.210.0040.00516.66
8.3.200.0040.00516.83
8.3.190.0070.00217.22
8.3.180.0110.00718.13
8.3.170.0060.01320.87
8.3.160.0090.00918.45
8.3.150.0000.01820.63
8.3.140.0090.00616.71
8.3.130.0000.00918.39
8.3.120.0080.00818.97
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0070.01026.77
8.3.80.0090.00017.97
8.3.70.0070.00718.30
8.3.60.0040.01616.75
8.3.50.0100.00318.52
8.3.40.0070.00718.49
8.3.30.0150.00318.77
8.3.20.0000.00720.77
8.3.10.0070.00021.91
8.3.00.0050.00220.54
8.2.290.0140.00516.46
8.2.280.0100.00918.63
8.2.270.0130.00617.02
8.2.260.0050.00319.08
8.2.250.0090.00016.82
8.2.240.0060.00617.04
8.2.230.0050.00322.58
8.2.220.0070.00337.54
8.2.210.0170.01326.77
8.2.200.0030.00716.50
8.2.190.0070.00716.58
8.2.180.0110.00718.32
8.2.170.0150.00622.96
8.2.160.0090.00621.02
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0080.00026.16
8.2.110.0090.00022.13
8.2.100.0120.00017.72
8.2.90.0080.00018.02
8.2.80.0000.00817.97
8.2.70.0000.00817.93
8.2.60.0000.00918.28
8.2.50.0040.00418.10
8.2.40.0060.00321.23
8.2.30.0000.00819.32
8.2.20.0080.00018.14
8.2.10.0000.00718.76
8.2.00.0000.00719.26
8.1.330.0120.00716.28
8.1.320.0110.00817.91
8.1.310.0180.00018.57
8.1.300.0090.00915.82
8.1.290.0000.01230.84
8.1.280.0110.00825.92
8.1.270.0090.00022.11
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00620.43
8.1.230.0070.00320.88
8.1.220.0040.00421.02
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00617.23
8.1.180.0030.00618.10
8.1.170.0080.00018.84
8.1.160.0060.00319.02
8.1.150.0000.00718.85
8.1.140.0050.00318.95
8.1.130.0000.00717.37
8.1.120.0050.00217.40
8.1.110.0060.00317.52
8.1.100.0000.00717.52
8.1.90.0040.00417.45
8.1.80.0040.00417.53
8.1.70.0030.00617.48
8.1.60.0030.00617.59
8.1.50.0040.00417.39
8.1.40.0080.00017.50
8.1.30.0000.00817.68
8.1.20.0040.00417.55
8.1.10.0050.00317.57
8.1.00.0000.00817.34
8.0.300.0070.00021.94
8.0.290.0050.00516.63
8.0.280.0030.00318.39
8.0.270.0060.00317.33
8.0.260.0060.00016.87
8.0.250.0000.00716.88
8.0.240.0070.00316.84
8.0.230.0030.00317.02
8.0.220.0070.00316.96
8.0.210.0030.00316.87
8.0.200.0030.00316.94
8.0.190.0000.00716.90
8.0.180.0000.00716.89
8.0.170.0000.00916.93
8.0.160.0000.00716.85
8.0.150.0030.00416.87
8.0.140.0030.00616.85
8.0.130.0050.00013.29
8.0.120.0000.00716.77
8.0.110.0000.00716.77
8.0.100.0070.00016.82
8.0.90.0030.00616.89
8.0.80.0110.00416.82
8.0.70.0030.00516.93
8.0.60.0050.00216.85
8.0.50.0000.00716.95
8.0.30.0080.00817.06
8.0.20.0080.01217.07
8.0.10.0070.00016.81
8.0.00.0070.01116.70
7.4.330.0020.00215.55
7.4.320.0030.00316.61
7.4.300.0000.00616.58
7.4.290.0080.00016.59
7.4.280.0040.00416.66
7.4.270.0030.00316.52
7.4.260.0000.00613.27
7.4.250.0040.00416.58
7.4.240.0010.00616.60
7.4.230.0030.00316.49
7.4.220.0020.00516.53
7.4.210.0060.01116.55
7.4.200.0000.00716.68
7.4.130.0090.01616.50
7.4.120.0110.00616.57
7.4.110.0100.00716.52
7.4.100.0120.00716.35
7.4.90.0140.00816.57
7.4.80.0120.00919.39
7.4.70.0080.00816.46
7.4.60.0040.01416.42
7.4.50.0060.00916.14
7.4.40.0110.00616.66
7.4.00.0060.01214.83
7.3.330.0020.00516.37
7.3.320.0030.00313.18
7.3.310.0040.00416.28
7.3.300.0070.00016.20
7.3.290.0070.00016.24
7.3.280.0090.00616.33
7.3.260.0090.01016.36
7.3.240.0070.00916.45
7.3.230.0100.01116.39
7.3.210.0070.01016.29
7.3.200.0100.00716.56
7.3.190.0070.00816.61
7.3.180.0110.01116.51
7.3.170.0080.00816.43
7.3.160.0040.01216.40
7.3.120.0100.00714.52
7.3.110.0020.01414.57
7.3.100.0040.01514.72
7.3.90.0070.00714.64
7.3.80.0050.00815.09
7.3.70.0100.00314.76
7.3.60.0050.01214.59
7.3.50.0050.01014.76
7.3.40.0080.00814.84
7.3.30.0050.00914.71
7.3.20.0050.01215.47
7.3.10.0090.00515.85
7.3.00.0070.00715.85
7.2.330.0090.00916.57
7.2.320.0100.00716.34
7.2.310.0120.00316.68
7.2.300.0110.01116.50
7.2.290.0060.00916.71
7.2.250.0030.01615.14
7.2.240.0060.01414.78
7.2.230.0070.00814.82
7.2.220.0030.01514.83
7.2.210.0030.01414.71
7.2.200.0070.00815.04
7.2.190.0070.00714.86
7.2.180.0040.01114.95
7.2.170.0050.01214.84
7.2.160.0070.00615.08
7.2.150.0100.00815.85
7.2.140.0110.00615.73
7.2.130.0070.00915.97
7.2.120.0050.00815.99
7.2.110.0080.00915.77
7.2.100.0110.00715.89
7.2.90.0080.00715.91
7.2.80.0070.00715.97
7.2.70.0080.00715.88
7.2.60.0090.00615.93
7.2.50.0120.00115.94
7.2.40.0060.00915.80
7.2.30.0070.00815.87
7.2.20.0110.00515.95
7.2.10.0090.00915.88
7.2.00.0090.01115.95
7.1.330.0100.01114.75
7.1.320.0070.01314.78
7.1.310.0110.00514.83
7.1.300.0080.00914.78
7.1.290.0080.00314.94
7.1.280.0030.01014.83
7.1.270.0060.00614.84
7.1.260.0050.00914.99
7.1.250.0180.00814.90
7.1.240.0030.01415.88
7.1.230.0100.00315.90
7.1.220.0130.00315.80
7.1.210.0000.01315.65
7.1.200.0040.00815.90
7.1.190.0060.00315.88
7.1.180.0060.01015.93
7.1.170.0080.00515.94
7.1.160.0030.01015.80
7.1.150.0040.00415.85
7.1.140.0030.00916.00
7.1.130.0040.01115.89
7.1.120.0030.01215.95
7.1.110.0110.00715.75
7.1.100.0090.00915.88
7.1.90.0040.00715.98
7.1.80.0030.00715.64
7.1.70.0050.00316.02
7.1.60.0040.01115.77
7.1.50.0040.01115.77
7.1.40.0030.01015.71
7.1.30.0090.00615.91
7.1.20.0090.00915.78
7.1.10.0060.01215.68
7.1.00.0110.00315.86

preferences:
108.44 ms | 403 KiB | 5 Q