3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dynamic_list = "AZ, CA, CO"; $static_list = "MN,WA,IA"; $search = "AZ"; if (!empty($search) && strpos($dynamic_list . ',' . $static_list, $search) === false) { // check string is not empty + that it is not on any of the lists echo 'not found: String '.$search.' was not found in lists'; } else { echo 'found'; }

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.5.70.0110.00316.63
8.5.60.0130.00516.51
8.5.50.0090.00816.79
8.5.30.0110.00917.36
8.5.20.0100.00821.24
8.5.10.0090.00916.61
8.5.00.0120.01020.05
8.4.220.0080.00919.42
8.4.210.0040.00519.50
8.4.180.0150.00819.60
8.4.170.0040.00520.38
8.4.160.0060.00622.20
8.4.150.0090.00416.79
8.4.140.0160.00417.46
8.4.130.0110.00917.98
8.4.120.0150.00524.14
8.4.110.0060.00422.52
8.4.100.0100.01218.69
8.4.90.0150.00618.90
8.4.80.0120.00818.93
8.4.70.0060.00217.95
8.4.60.0090.01318.75
8.4.50.0150.00518.38
8.4.40.0000.01217.44
8.4.30.0150.00322.66
8.4.20.0160.00318.91
8.4.10.0090.00017.63
8.3.310.0140.00620.13
8.3.300.0120.01020.71
8.3.290.0080.01220.68
8.3.280.0110.00818.33
8.3.270.0120.00816.58
8.3.260.0100.00716.53
8.3.250.0090.00918.61
8.3.240.0060.00217.07
8.3.230.0130.00616.22
8.3.220.0100.00818.91
8.3.210.0080.01016.51
8.3.200.0040.00616.65
8.3.190.0090.00819.04
8.3.180.0110.00718.80
8.3.170.0160.00317.15
8.3.160.0130.00416.50
8.3.150.0090.00917.03
8.3.140.0050.00316.63
8.3.130.0000.00818.36
8.3.120.0070.00720.75
8.3.110.0000.00816.66
8.3.100.0040.00418.54
8.3.90.0130.00626.77
8.3.80.0040.00419.36
8.3.70.0070.00718.55
8.3.60.0120.00618.30
8.3.50.0130.00822.00
8.3.40.0140.00318.69
8.3.30.0110.00318.62
8.3.20.0040.00421.77
8.3.10.0050.00320.20
8.3.00.0040.00423.55
8.2.310.0120.00718.07
8.2.300.0100.01123.91
8.2.290.0140.00420.54
8.2.280.0070.01119.83
8.2.270.0110.00716.47
8.2.260.0040.00418.80
8.2.250.0000.00918.49
8.2.240.0120.00318.12
8.2.230.0080.01120.94
8.2.220.0100.00324.06
8.2.210.0090.00626.77
8.2.200.0030.00618.88
8.2.190.0130.01016.58
8.2.180.0070.00716.50
8.2.170.0040.01122.96
8.2.160.0110.00320.69
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0070.00321.08
8.2.100.0060.00617.91
8.2.90.0030.00519.15
8.2.80.0000.01017.97
8.2.70.0030.00617.63
8.2.60.0020.00517.80
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0030.00518.13
8.2.20.0000.00817.94
8.2.10.0000.00719.25
8.2.00.0070.00019.13
8.1.340.0110.00917.53
8.1.330.0100.00921.79
8.1.320.0100.00817.93
8.1.310.0070.01018.60
8.1.300.0060.00317.75
8.1.290.0030.00730.84
8.1.280.0070.00725.92
8.1.270.0040.00422.05
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00621.26
8.1.230.0070.00417.76
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00417.24
8.1.190.0040.00417.00
8.1.180.0080.00018.10
8.1.170.0030.00618.51
8.1.160.0000.00918.83
8.1.150.0000.00718.77
8.1.140.0000.00818.80
8.1.130.0040.00420.17
8.1.120.0000.00717.45
8.1.110.0000.00717.48
8.1.100.0000.00717.48
8.1.90.0040.00417.38
8.1.80.0040.00417.48
8.1.70.0040.00417.36
8.1.60.0040.00417.63
8.1.50.0000.00817.52
8.1.40.0060.00317.54
8.1.30.0000.00817.66
8.1.20.0000.00917.64
8.1.10.0030.00617.43
8.1.00.0000.00717.31
8.0.300.0040.00418.77
8.0.290.0070.00316.63
8.0.280.0000.00718.37
8.0.270.0040.00416.76
8.0.260.0000.00618.50
8.0.250.0070.00016.97
8.0.240.0030.00616.85
8.0.230.0040.00417.00
8.0.220.0000.00716.74
8.0.210.0000.00716.79
8.0.200.0030.00316.90
8.0.190.0040.00416.94
8.0.180.0040.00416.99
8.0.170.0090.00016.92
8.0.160.0040.00716.88
8.0.150.0000.00816.91
8.0.140.0050.00216.91
8.0.130.0060.00013.40
8.0.120.0070.00016.93
8.0.110.0050.00316.80
8.0.100.0000.00716.74
8.0.90.0030.00616.81
8.0.80.0070.00716.88
8.0.70.0050.00316.78
8.0.60.0000.00716.88
8.0.50.0070.00017.01
8.0.30.0120.00616.87
8.0.20.0130.00617.13
8.0.10.0070.00016.89
8.0.00.0100.00916.69
7.4.330.0050.00015.55
7.4.320.0030.00316.49
7.4.300.0060.00016.46
7.4.290.0030.00616.53
7.4.280.0030.00616.61
7.4.270.0000.00716.51
7.4.260.0070.00016.61
7.4.250.0040.00416.33
7.4.240.0030.00316.57
7.4.230.0030.00316.41
7.4.220.0000.00716.72
7.4.210.0080.00816.65
7.4.200.0000.00716.68
7.4.140.0070.01017.86
7.4.130.0110.00616.38
7.4.120.0150.00316.57
7.4.110.0080.01716.48
7.4.100.0060.01016.50
7.4.90.0030.01416.41
7.4.80.0170.00319.39
7.4.70.0030.01316.53
7.4.60.0140.00916.51
7.4.50.0000.01416.50
7.4.40.0070.01016.52
7.4.00.0080.01014.84
7.3.330.0000.00513.20
7.3.320.0050.00312.93
7.3.310.0070.00016.25
7.3.300.0000.00716.17
7.3.290.0000.00616.30
7.3.280.0120.00316.27
7.3.260.0120.00516.41
7.3.240.0070.00916.46
7.3.230.0130.00316.27
7.3.210.0090.00616.31
7.3.200.0090.00916.23
7.3.190.0060.00916.32
7.3.180.0000.01616.33
7.3.170.0120.00916.31
7.3.160.0110.01116.29
7.3.120.0100.01014.72
7.3.110.0100.00714.45
7.3.100.0070.01014.67
7.3.90.0030.01614.75
7.3.80.0070.00714.58
7.3.70.0090.00614.85
7.3.60.0080.01314.69
7.3.50.0060.00814.57
7.3.40.0130.00614.80
7.3.30.0070.00614.76
7.3.20.0110.00716.69
7.3.10.0060.01116.57
7.3.00.0070.00716.72
7.2.330.0120.00616.65
7.2.320.0130.00616.49
7.2.310.0030.01316.35
7.2.300.0140.01016.47
7.2.290.0060.00916.75
7.2.250.0130.00614.96
7.2.240.0090.00914.92
7.2.230.0090.00314.80
7.2.220.0110.00715.22
7.2.210.0070.01114.71
7.2.200.0000.01515.17
7.2.190.0070.01015.13
7.2.180.0120.00814.70
7.2.170.0080.01115.08
7.2.160.0070.01414.94
7.2.150.0150.00916.89
7.2.140.0120.01216.84
7.2.130.0150.01216.64
7.2.120.0080.00816.62
7.2.110.0060.00916.80
7.2.100.0090.00916.91
7.2.90.0060.00616.88
7.2.80.0070.01416.91
7.2.70.0100.00716.77
7.2.60.0120.01216.89
7.2.50.0030.01116.75
7.2.40.0140.00616.88
7.2.30.0000.01317.09
7.2.20.0070.00416.97
7.2.10.0080.00516.98
7.2.00.0120.01016.69
7.1.330.0000.01215.69
7.1.320.0120.00615.95
7.1.310.0030.00715.89
7.1.300.0050.00715.71
7.1.290.0060.00815.83
7.1.280.0080.00915.82
7.1.270.0110.00315.63
7.1.260.0050.00715.81
7.1.250.0060.00915.75

preferences:
108.63 ms | 1501 KiB | 5 Q