3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match_counter =0; $array = array('Free Breakfast','Free Wireless Internet','Free Festival Breakfast'); $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.0140.00717.54
8.4.130.0060.00620.58
8.4.120.0060.00224.18
8.4.110.0160.00518.84
8.4.100.0120.00518.95
8.4.90.0100.01122.65
8.4.80.0120.00819.70
8.4.70.0080.01118.13
8.4.60.0120.00819.07
8.4.50.0050.00420.59
8.4.40.0150.00419.63
8.4.30.0190.00318.31
8.4.20.0170.00320.21
8.4.10.0080.00817.78
8.3.270.0100.01016.29
8.3.260.0050.00416.85
8.3.250.0090.00819.05
8.3.240.0130.00516.91
8.3.230.0100.00916.34
8.3.220.0070.01219.09
8.3.210.0050.00316.61
8.3.200.0040.00516.68
8.3.190.0070.00817.14
8.3.180.0090.00916.54
8.3.170.0090.00916.94
8.3.160.0000.00820.09
8.3.150.0070.01119.15
8.3.140.0040.00417.02
8.3.130.0080.00018.32
8.3.120.0130.00318.70
8.3.110.0080.00020.94
8.3.100.0030.00624.06
8.3.90.0000.00826.77
8.3.80.0030.00617.97
8.3.70.0040.01216.38
8.3.60.0090.00618.43
8.3.50.0070.00718.35
8.3.40.0100.00718.76
8.3.30.0070.00718.71
8.3.20.0030.00620.86
8.3.10.0040.00423.65
8.3.00.0030.00523.48
8.2.290.0140.00620.28
8.2.280.0050.00318.51
8.2.270.0110.00716.95
8.2.260.0040.00416.87
8.2.250.0040.00416.71
8.2.240.0090.00018.75
8.2.230.0030.00622.58
8.2.220.0000.00937.54
8.2.210.0040.00426.77
8.2.200.0090.00018.41
8.2.190.0090.00920.18
8.2.180.0080.00818.29
8.2.170.0120.00322.96
8.2.160.0100.00322.25
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00018.09
8.2.120.0000.00826.16
8.2.110.0060.00320.89
8.2.100.0030.00917.66
8.2.90.0050.00318.03
8.2.80.0040.00419.36
8.2.70.0030.00517.63
8.2.60.0040.00417.90
8.2.50.0040.00418.07
8.2.40.0040.00418.03
8.2.30.0050.00318.08
8.2.20.0040.00417.97
8.2.10.0020.00519.18
8.2.00.0040.00419.12
8.1.330.0090.00921.79
8.1.320.0120.00816.18
8.1.310.0080.00018.71
8.1.300.0030.00618.53
8.1.290.0060.00330.84
8.1.280.0080.00825.92
8.1.270.0030.00620.57
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0060.00319.09
8.1.230.0090.00321.10
8.1.220.0060.00317.77
8.1.210.0050.00318.95
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0000.00818.85
8.1.160.0040.00418.94
8.1.150.0000.00718.80
8.1.140.0000.00722.19
8.1.130.0050.00520.18
8.1.120.0030.00517.52
8.1.110.0070.00317.46
8.1.100.0040.00417.45
8.1.90.0000.00717.50
8.1.80.0040.00417.42
8.1.70.0040.00417.48
8.1.60.0040.00417.47
8.1.50.0030.00517.53
8.1.40.0000.00717.51
8.1.30.0040.00417.65
8.1.20.0080.00017.61
8.1.10.0040.00417.52
8.1.00.0000.00717.45
8.0.300.0000.00719.98
8.0.290.0060.00316.75
8.0.280.0000.00718.41
8.0.270.0030.00316.83
8.0.260.0000.00718.45
8.0.250.0070.00016.93
8.0.240.0030.00317.00
8.0.230.0000.00716.98
8.0.220.0040.00416.87
8.0.210.0000.00716.78
8.0.200.0000.00716.84
8.0.190.0020.00517.00
8.0.180.0030.00516.93
8.0.170.0060.00316.94
8.0.160.0000.00716.96
8.0.150.0030.00316.72
8.0.140.0070.00016.77
8.0.130.0030.00313.32
8.0.120.0000.00816.91
8.0.110.0000.00816.85
8.0.100.0030.00516.93
8.0.90.0000.00716.84
8.0.80.0070.00916.85
8.0.70.0040.00416.83
8.0.60.0000.00716.96
8.0.50.0000.00816.76
8.0.30.0130.00417.11
8.0.20.0070.02017.40
8.0.10.0070.00016.97
8.0.00.0120.00816.72
7.4.330.0060.00015.55
7.4.320.0040.00416.63
7.4.300.0060.00016.53
7.4.290.0070.00016.64
7.4.280.0080.00016.64
7.4.270.0000.00816.56
7.4.260.0000.00716.47
7.4.250.0040.00416.45
7.4.240.0040.00416.65
7.4.230.0030.00316.58
7.4.220.0000.00816.61
7.4.210.0060.00916.61
7.4.200.0030.00316.59
7.4.160.0080.00916.64
7.4.140.0110.01117.86
7.4.130.0060.01216.44
7.4.120.0070.01016.50
7.4.110.0090.00916.54
7.4.100.0070.01616.67
7.4.90.0140.00416.59
7.4.80.0120.00919.39
7.4.70.0130.01016.34
7.4.60.0100.00616.34
7.4.50.0100.00716.44
7.4.40.0100.00616.36
7.4.00.0080.00615.01
7.3.330.0030.00213.02
7.3.320.0000.00613.11
7.3.310.0080.00016.11
7.3.300.0070.00016.28
7.3.290.0030.00416.10
7.3.280.0110.00616.25
7.3.260.0090.01116.45
7.3.240.0100.00916.30
7.3.230.0120.00616.49
7.3.210.0130.00316.36
7.3.200.0090.00616.58
7.3.190.0130.00316.25
7.3.180.0070.01516.59
7.3.170.0100.01216.57
7.3.160.0110.00816.23
7.3.120.0120.00614.99
7.3.110.0100.00714.73
7.3.100.0040.01414.38
7.3.90.0080.00415.01
7.3.80.0030.01014.68
7.3.70.0150.00014.88
7.3.60.0030.01014.77
7.3.50.0110.00414.80
7.3.40.0100.00314.73
7.3.30.0030.01014.90
7.3.20.0030.00916.75
7.3.10.0090.00616.65
7.3.00.0150.00515.88
7.2.330.0030.01616.62
7.2.320.0030.01316.86
7.2.310.0050.01016.61
7.2.300.0070.01016.78
7.2.290.0060.01016.47
7.2.250.0080.00415.26
7.2.240.0060.01314.91
7.2.230.0090.00915.27
7.2.220.0030.00615.16
7.2.210.0060.00915.27
7.2.200.0040.00715.02
7.2.190.0040.01115.00
7.2.180.0090.00315.11
7.2.170.0060.00314.86
7.2.130.0180.00816.05
7.2.120.0230.00815.94
7.2.110.0230.00616.05
7.2.100.0160.00315.98
7.2.90.0130.00915.82
7.2.80.0210.00215.85
7.2.70.0220.00315.88
7.2.60.0210.00515.93
7.2.50.0180.01015.96
7.2.40.0310.00715.86
7.2.30.0220.00915.85
7.2.20.0250.00715.67
7.2.10.0190.00315.75
7.2.00.0230.00716.02
7.1.330.0110.00415.81
7.1.320.0000.01315.68
7.1.310.0110.00315.78
7.1.300.0130.00015.45
7.1.290.0060.00615.48
7.1.280.0030.01415.70
7.1.270.0070.00315.79
7.1.260.0060.00615.64
7.1.250.0140.00915.01

preferences:
33.69 ms | 403 KiB | 5 Q