3v4l.org

run code in 300+ PHP versions simultaneously
<?php function includes_from_array($stringArray, $searchInMe){ if(is_array($stringArray)){ foreach($stringArray as $arr){ if(strpos($searchInMe,$arr) !== false){ return true; } } }else{ if(strpos($searchInMe,$stringArray) !== false){ return true; } } return false; } var_dump(includes_from_array('bad','You are a bad boy')); var_dump(includes_from_array('bad','https://badboy.com')); var_dump(includes_from_array(array('bad','dirty'),'You are a bad boy')); var_dump(includes_from_array(array('bad','dirty'),'https://badboy.com')); var_dump(includes_from_array('bad','You are a good boy')); var_dump(includes_from_array('bad','https://goodboy.com')); var_dump(includes_from_array(array('bad','dirty'),'You are a good boy')); var_dump(includes_from_array(array('bad','dirty'),'https://goodboy.com'));

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.80.0030.00616.38
8.3.70.0130.00416.58
8.3.60.0130.00616.50
8.3.50.0150.00018.28
8.3.40.0150.00718.73
8.3.30.0050.01220.78
8.3.20.0070.00623.57
8.3.10.0080.00523.81
8.3.00.0120.00224.56
8.2.200.0080.00318.04
8.2.190.0070.00718.29
8.2.180.0070.01425.92
8.2.170.0140.00718.91
8.2.160.0090.00722.96
8.2.150.0080.00324.31
8.2.140.0080.00323.81
8.2.130.0080.00624.56
8.2.120.0110.00324.66
8.2.110.0050.00622.56
8.2.100.0100.00320.37
8.2.90.0090.00620.29
8.2.80.0010.01020.87
8.2.70.0050.00720.29
8.2.60.0080.00320.23
8.2.50.0050.00920.26
8.2.40.0020.00921.08
8.2.30.0110.00320.44
8.2.20.0100.00420.44
8.2.10.0090.00721.01
8.2.00.0090.00721.11
8.1.290.0090.00030.84
8.1.280.0140.00725.92
8.1.270.0070.00822.57
8.1.260.0080.00624.66
8.1.250.0060.00725.53
8.1.240.0030.01123.46
8.1.230.0070.00720.97
8.1.220.0030.00920.38
8.1.210.0060.00620.87
8.1.200.0090.00220.09
8.1.190.0090.00220.03
8.1.180.0070.00420.53
8.1.170.0070.00420.31
8.1.160.0050.00520.96
8.1.150.0100.00320.86
8.1.140.0050.00620.87
8.1.130.0050.00520.23
8.1.120.0100.00120.17
8.1.110.0090.00120.16
8.1.100.0070.00420.13
8.1.90.0080.00320.14
8.1.80.0060.00620.10
8.1.70.0070.00320.18
8.1.60.0060.00520.27
8.1.50.0060.00620.22
8.1.40.0050.00720.18
8.1.30.0050.00520.29
8.1.20.0040.00820.23
8.1.10.0070.00520.19
8.1.00.0070.00420.07
8.0.300.0100.00320.87
8.0.290.0110.00619.79
8.0.280.0180.00421.59
8.0.270.0030.01020.51
8.0.260.0150.00421.42
8.0.250.0120.00919.92
8.0.240.0100.01019.91
8.0.230.0110.00519.91
8.0.220.0100.00519.94
8.0.210.0080.00919.88
8.0.200.0160.00219.95
8.0.190.0170.00519.95
8.0.180.0120.00719.94
8.0.170.0190.00519.94
8.0.160.0140.00619.94
8.0.150.0160.00319.90
8.0.140.0100.00919.86
8.0.130.0110.00618.15
8.0.120.0140.00419.94
8.0.110.0170.00019.93
8.0.100.0070.01019.96
8.0.90.0110.00519.92
8.0.80.0140.00818.92
8.0.70.0050.00719.88
8.0.60.0150.00219.91
8.0.50.0100.00619.86
8.0.30.0090.00819.95
8.0.20.0210.00319.97
8.0.10.0190.00519.98
8.0.00.0110.01119.99
7.4.330.0030.00419.26
7.4.320.0070.00819.74
7.4.300.0210.00219.77
7.4.290.0160.00319.63
7.4.280.0130.00719.70
7.4.270.0160.00519.76
7.4.260.0100.00818.06
7.4.250.0150.00419.75
7.4.240.0180.00619.71
7.4.230.0140.00619.77
7.4.220.0100.00518.56
7.4.210.0230.00419.66
7.4.200.0200.00419.77
7.4.190.0260.00422.96
7.4.180.0220.00722.96
7.4.160.0130.01019.72
7.4.150.0190.00519.72
7.4.140.0160.00619.80
7.4.130.0090.01419.64
7.4.120.0160.00719.74
7.4.110.0220.00419.74
7.4.100.0140.00819.77
7.4.90.0150.01419.69
7.4.80.0150.00819.71
7.4.70.0130.01119.71
7.4.60.0140.00819.69
7.4.50.0170.00319.70
7.4.40.0130.00819.65
7.4.30.0120.01019.71
7.4.20.0200.00519.69
7.4.10.0140.00719.70
7.4.00.0130.01219.71
7.3.330.0140.00519.59
7.3.320.0110.00618.13
7.3.310.0180.00419.69
7.3.300.0150.00819.65
7.3.290.0120.00817.99
7.3.280.0180.00619.64
7.3.270.0170.00719.65
7.3.260.0200.01019.65
7.3.250.0180.00919.60
7.3.240.0180.00519.63
7.3.230.0170.00319.62
7.3.220.0170.00519.64
7.3.210.0120.00919.65
7.3.200.0100.01219.64
7.3.190.0160.00519.63
7.3.180.0140.00819.67
7.3.170.0140.00619.64
7.3.160.0180.00519.61
7.3.150.0200.00719.67
7.3.140.0150.00819.62
7.3.130.0190.00619.68
7.3.120.0170.00819.61
7.3.110.0170.00819.59
7.3.100.0180.01119.59
7.3.90.0180.00719.75
7.3.80.0160.00619.58
7.3.70.0180.00619.67
7.3.60.0160.01019.74
7.3.50.0190.00619.71
7.3.40.0180.00819.69
7.3.30.0210.00219.73
7.3.20.0170.00719.73
7.3.10.0220.00419.70
7.3.00.0180.01119.70

preferences:
33.2 ms | 401 KiB | 5 Q