3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match_counter =0; $array = Array ( 0 => 'Free Breakfast', 1 => 'Free Wireless Internet' ); $search = 'Breakfast'; foreach($array as $arr){ if(stripos($arr,$search) !==false){ echo $arr.PHP_EOL; $match_counter++; } } if($match_counter ==0){ echo 'No '.$search; }

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.140.0150.00617.55
8.4.130.0120.00917.66
8.4.120.0080.01424.13
8.4.110.0090.00924.00
8.4.100.0130.00619.09
8.4.90.0140.00520.50
8.4.80.0090.01119.27
8.4.70.0140.00817.81
8.4.60.0150.00518.59
8.4.50.0060.00320.14
8.4.40.0090.01219.80
8.4.30.0110.00818.48
8.4.20.0170.00320.18
8.4.10.0030.00717.70
8.3.270.0100.01016.71
8.3.260.0110.00817.02
8.3.250.0110.00818.67
8.3.240.0120.00716.96
8.3.230.0110.00816.67
8.3.220.0110.00718.76
8.3.210.0100.00418.21
8.3.200.0050.00616.64
8.3.190.0090.00917.21
8.3.180.0140.00518.38
8.3.170.0100.01016.88
8.3.160.0060.01318.37
8.3.150.0040.00416.67
8.3.140.0000.00817.15
8.3.130.0070.00316.42
8.3.120.0060.00320.63
8.3.110.0120.00420.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0030.00617.97
8.3.70.0110.00416.38
8.3.60.0110.00718.30
8.3.50.0100.01018.25
8.3.40.0150.00618.86
8.3.30.0040.01118.56
8.3.20.0040.00420.95
8.3.10.0070.00023.72
8.3.00.0090.00023.48
8.2.290.0100.00820.56
8.2.280.0100.00920.51
8.2.270.0150.00417.41
8.2.260.0060.01318.37
8.2.250.0040.00416.70
8.2.240.0060.00317.14
8.2.230.0150.00022.58
8.2.220.0100.00037.54
8.2.210.0040.00426.77
8.2.200.0090.00018.16
8.2.190.0040.01220.39
8.2.180.0120.00318.29
8.2.170.0070.00722.96
8.2.160.0120.00322.17
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0040.00420.92
8.2.110.0080.00020.47
8.2.100.0040.00717.78
8.2.90.0030.00617.91
8.2.80.0040.00419.25
8.2.70.0030.00617.63
8.2.60.0080.00017.93
8.2.50.0060.00318.05
8.2.40.0080.00019.75
8.2.30.0020.00519.12
8.2.20.0070.00018.13
8.2.10.0000.00819.14
8.2.00.0000.00719.23
8.1.330.0100.00821.89
8.1.320.0120.00816.01
8.1.310.0070.01018.23
8.1.300.0000.00920.16
8.1.290.0060.00630.84
8.1.280.0070.01125.92
8.1.270.0030.00620.46
8.1.260.0070.00026.35
8.1.250.0100.00728.09
8.1.240.0060.00321.98
8.1.230.0090.00322.11
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0040.00417.35
8.1.180.0050.00518.10
8.1.170.0000.00818.26
8.1.160.0040.00418.80
8.1.150.0070.00018.73
8.1.140.0030.00322.06
8.1.130.0030.00320.02
8.1.120.0000.00717.46
8.1.110.0000.01017.46
8.1.100.0000.00717.43
8.1.90.0030.00517.35
8.1.80.0000.00717.34
8.1.70.0000.00717.32
8.1.60.0030.00617.64
8.1.50.0050.00317.53
8.1.40.0080.00017.53
8.1.30.0070.00017.66
8.1.20.0050.00317.53
8.1.10.0030.00617.50
8.1.00.0040.00417.38
8.0.300.0000.00720.16
8.0.290.0030.00616.75
8.0.280.0000.00718.37
8.0.270.0070.00017.32
8.0.260.0030.00318.49
8.0.250.0070.00016.95
8.0.240.0000.00716.83
8.0.230.0050.00316.95
8.0.220.0060.00316.81
8.0.210.0000.00716.91
8.0.200.0000.00716.82
8.0.190.0080.00016.87
8.0.180.0040.00416.83
8.0.170.0040.00416.92
8.0.160.0040.00416.82
8.0.150.0030.00316.86
8.0.140.0030.00316.87
8.0.130.0030.00313.25
8.0.120.0070.00016.76
8.0.110.0000.00716.70
8.0.100.0040.00416.95
8.0.90.0030.00516.90
8.0.80.0060.00916.83
8.0.70.0000.00816.87
8.0.60.0080.00016.83
8.0.50.0040.00416.77
8.0.30.0180.00016.96
8.0.20.0110.01417.40
8.0.10.0000.00816.89
8.0.00.0120.01016.81
7.4.330.0000.00615.55
7.4.320.0000.00616.58
7.4.300.0000.00616.61
7.4.290.0000.00816.65
7.4.280.0040.00416.59
7.4.270.0070.00016.52
7.4.260.0040.00416.48
7.4.250.0050.00216.58
7.4.240.0030.00316.46
7.4.230.0080.00016.36
7.4.220.0040.00416.35
7.4.210.0060.01216.57
7.4.200.0000.00716.42
7.4.160.0080.00816.56
7.4.140.0070.01217.86
7.4.130.0150.00416.59
7.4.120.0070.01016.51
7.4.110.0060.01616.62
7.4.100.0080.01116.55
7.4.90.0090.00916.54
7.4.80.0130.00719.39
7.4.70.0030.01716.57
7.4.60.0100.00716.37
7.4.50.0060.00916.41
7.4.40.0150.00916.64
7.4.00.0100.00815.02
7.3.330.0000.00513.17
7.3.320.0000.00513.02
7.3.310.0070.00016.40
7.3.300.0070.00016.15
7.3.290.0030.00316.29
7.3.280.0180.01116.20
7.3.260.0120.00716.44
7.3.240.0090.00916.35
7.3.230.0100.00716.57
7.3.210.0130.00316.67
7.3.200.0040.01216.29
7.3.190.0090.01116.56
7.3.180.0060.01116.31
7.3.170.0190.00316.28
7.3.160.0330.01816.69
7.3.120.0060.01315.13
7.3.110.0070.01314.70
7.3.100.0000.01314.80
7.3.90.0080.00814.79
7.3.80.0100.00015.02
7.3.70.0030.01214.89
7.3.60.0060.00614.79
7.3.50.0140.00014.96
7.3.40.0030.00614.77
7.3.30.0070.00414.91
7.3.20.0040.01116.77
7.3.10.0070.00716.57
7.3.00.0260.00515.58
7.2.330.0060.01216.45
7.2.320.0060.01216.37
7.2.310.0040.01316.80
7.2.300.0110.00616.80
7.2.290.0070.01116.59
7.2.250.0080.00614.74
7.2.240.0070.01015.29
7.2.230.0100.00315.13
7.2.220.0040.00815.19
7.2.210.0040.01114.79
7.2.200.0070.01015.00
7.2.190.0030.01014.83
7.2.180.0100.00715.07
7.2.170.0070.00714.94
7.2.130.0310.00814.88
7.2.120.0300.01015.04
7.2.110.0270.01415.06
7.2.100.0480.00614.91
7.2.90.0490.00315.20
7.2.80.0400.00315.02
7.2.70.0370.00915.12
7.2.60.0530.00315.05
7.2.50.0420.00315.06
7.2.40.0390.00714.97
7.2.30.0330.00715.10
7.2.20.0390.00715.09
7.2.10.0650.00714.87
7.2.00.0630.00715.23
7.1.330.0090.00615.87
7.1.320.0060.00315.82
7.1.310.0040.01115.90
7.1.300.0090.00315.82
7.1.290.0090.00915.80
7.1.280.0070.01015.95
7.1.270.0070.00415.81
7.1.260.0110.00415.79
7.1.250.0370.00713.89

preferences:
37.27 ms | 403 KiB | 5 Q