3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = "test;colorgroup-b;test;abc"; var_dump(string_includes("group", $params)); //outputs: colorgroup-b function string_includes($needle, $haystack) { $needlePosition = strpos($haystack, $needle); if ($needlePosition === false) { return false; } $needleEndPosition = strpos($haystack, ';', $needlePosition); if ($needleEndPosition !== false) { $haystack = substr($haystack, 0, $needleEndPosition); } $delimiterPosition = strrpos($haystack, ';'); if ($delimiterPosition === false) { return $haystack; } return substr($haystack, $delimiterPosition + 1); }

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.0100.00824.27
8.4.110.0030.00722.26
8.4.100.0140.00618.66
8.4.90.0130.00819.03
8.4.80.0090.00918.75
8.4.70.0110.00817.99
8.4.60.0040.00518.86
8.4.50.0090.01020.57
8.4.40.0090.00920.64
8.4.30.0140.00322.39
8.4.20.0110.00720.80
8.4.10.0050.00517.64
8.3.250.0100.00918.70
8.3.240.0090.01017.00
8.3.230.0080.00916.57
8.3.220.0070.00818.85
8.3.210.0140.00416.48
8.3.200.0060.00316.38
8.3.190.0140.00616.97
8.3.180.0110.00416.59
8.3.170.0080.00816.57
8.3.160.0040.00416.52
8.3.150.0040.00417.22
8.3.140.0090.00917.22
8.3.130.0060.00318.57
8.3.120.0070.00720.61
8.3.110.0070.00320.94
8.3.100.0080.00016.53
8.3.90.0000.00818.27
8.3.80.0090.00616.25
8.3.70.0110.00716.58
8.3.60.0120.00618.06
8.3.50.0120.00922.17
8.3.40.0120.00618.72
8.3.30.0070.00718.68
8.3.20.0040.01121.70
8.3.10.0000.00720.21
8.3.00.0040.00423.56
8.2.290.0120.00722.10
8.2.280.0100.00920.18
8.2.270.0120.00616.94
8.2.260.0090.00918.68
8.2.250.0040.00416.82
8.2.240.0040.00418.76
8.2.230.0060.00322.58
8.2.220.0090.00037.54
8.2.210.0150.00426.77
8.2.200.0030.00616.50
8.2.190.0120.00316.58
8.2.180.0070.01118.04
8.2.170.0120.00322.96
8.2.160.0030.01020.87
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00826.16
8.2.110.0070.00322.20
8.2.100.0070.00417.66
8.2.90.0030.00617.78
8.2.80.0040.00417.97
8.2.70.0060.00317.80
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0040.00419.32
8.2.30.0040.00419.12
8.2.20.0000.00818.02
8.2.10.0000.00919.27
8.2.00.0000.00719.32
8.1.330.0120.00622.07
8.1.320.0130.00617.69
8.1.310.0000.00816.64
8.1.300.0090.00917.91
8.1.290.0110.00030.84
8.1.280.0150.00025.92
8.1.270.0000.00722.01
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.80
8.1.230.0110.00220.62
8.1.220.0030.00617.77
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0060.00317.13
8.1.180.0060.00318.10
8.1.170.0040.00418.27
8.1.160.0000.00718.83
8.1.150.0040.00418.89
8.1.140.0070.00018.77
8.1.130.0030.00320.10
8.1.120.0000.00717.40
8.1.110.0080.00017.25
8.1.100.0000.00717.36
8.1.90.0040.00417.38
8.1.80.0000.00717.38
8.1.70.0050.00317.44
8.1.60.0040.00417.61
8.1.50.0040.00417.55
8.1.40.0040.00417.40
8.1.30.0080.00017.56
8.1.20.0040.00417.69
8.1.10.0040.00417.44
8.1.00.0050.00317.37
8.0.300.0030.00619.66
8.0.290.0070.00016.63
8.0.280.0000.00718.36
8.0.270.0040.00417.22
8.0.260.0050.00318.31
8.0.250.0040.00416.83
8.0.240.0040.00416.90
8.0.230.0000.00816.80
8.0.220.0030.00316.73
8.0.210.0040.00416.82
8.0.200.0030.00316.89
8.0.190.0040.00416.96
8.0.180.0000.00716.84
8.0.170.0000.00816.90
8.0.160.0050.00216.87
8.0.150.0070.00016.88
8.0.140.0030.00716.66
8.0.130.0040.00413.23
8.0.120.0050.00316.76
8.0.110.0050.00316.75
8.0.100.0000.00816.86
8.0.90.0000.00816.89
8.0.80.0100.01016.89
8.0.70.0070.00016.91
8.0.60.0080.00016.81
8.0.50.0040.00416.83
8.0.30.0090.00917.26
8.0.20.0100.01217.26
8.0.10.0040.00416.86
8.0.00.0140.00416.72
7.4.330.0030.00315.55
7.4.320.0030.00316.46
7.4.300.0030.00316.54
7.4.290.0070.00016.53
7.4.280.0000.00716.46
7.4.270.0020.00516.57
7.4.260.0030.00316.58
7.4.250.0000.00716.50
7.4.240.0000.00716.42
7.4.230.0030.00316.38
7.4.220.0030.00316.32
7.4.210.0080.00916.54
7.4.200.0080.00016.36
7.4.130.0070.01016.36
7.4.120.0030.01416.41
7.4.110.0100.00716.52
7.4.100.0090.01016.65
7.4.90.0070.01016.55
7.4.80.0060.01319.39
7.4.70.0140.00416.43
7.4.60.0100.01016.59
7.4.50.0060.00616.63
7.4.40.0090.00716.54
7.4.00.0050.00514.91
7.3.330.0000.00513.15
7.3.320.0000.00613.36
7.3.310.0000.00716.40
7.3.300.0000.00716.24
7.3.290.0030.00316.24
7.3.280.0130.00816.28
7.3.260.0100.01016.32
7.3.240.0100.00716.41
7.3.230.0140.01016.39
7.3.210.0100.01316.50
7.3.200.0140.00316.50
7.3.190.0070.01016.64
7.3.180.0040.01216.27
7.3.170.0060.01516.50
7.3.160.0190.00316.48
7.3.70.0030.01314.87
7.3.60.0030.00714.68
7.3.50.0000.01314.83
7.3.40.0070.00314.63
7.3.30.0070.00914.71
7.3.20.0100.00316.50
7.3.10.0070.01316.75
7.3.00.0060.00616.52
7.2.330.0200.00016.78
7.2.320.0070.01016.44
7.2.310.0060.00916.63
7.2.300.0040.01216.53
7.2.290.0030.01416.68
7.2.200.0030.01014.94
7.2.190.0070.00714.82
7.2.180.0140.00715.07
7.2.170.0040.00715.00
7.2.160.0150.00614.86
7.2.150.0140.00716.62
7.2.140.0090.01316.57
7.2.130.0080.01216.63
7.2.120.0060.00916.76
7.2.110.0060.00916.90
7.2.100.0060.00916.87
7.2.90.0070.00716.73
7.2.80.0110.00316.86
7.2.70.0060.00916.74
7.2.60.0090.00316.68
7.2.50.0000.01116.90
7.2.40.0070.00417.04
7.2.30.0030.01016.84
7.2.20.0150.00616.80
7.2.10.0000.01316.69
7.2.00.0030.00916.89
7.1.300.0070.00715.86
7.1.290.0130.00615.71
7.1.280.0120.01015.78
7.1.270.0100.00715.90
7.1.260.0060.00615.79
7.1.250.0060.00615.76

preferences:
27.67 ms | 403 KiB | 5 Q