3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mlbCities = array( 'Carolina', 'Atlanta', 'New Orleans', 'Philadelphia', 'St. Louis', 'Washington', 'Houston', 'Tennessee', 'New England', 'NY Jets', 'Cincinnati', 'Green Bay', 'Arizona', 'Jacksonville', 'Oakland', 'Kansas City', 'Minnesota', 'Detroit', 'Tampa Bay', 'Buffalo', 'Seattle', 'San Francisco', 'Pittsburgh', 'Chicago', 'Baltimore', 'San Diego', 'Cleveland', 'Denver', 'NY Giants', 'Dallas', 'Indianapolis', 'Miami' ); $string = 'San Francisco'; foreach($mlbCities as $city) { $team = strpos($string, $city); if (!empty($team)) { echo 'Found it\r'; exit; } else { echo "Nope\r"; } } ?>

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.60.0110.00716.63
8.3.50.0130.00322.10
8.3.40.0070.00718.72
8.3.30.0070.00718.92
8.3.20.0040.00420.21
8.3.10.0030.00521.95
8.3.00.0060.00320.77
8.2.180.0090.00916.63
8.2.170.0110.00722.96
8.2.160.0040.01122.13
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.25
8.2.110.0090.00022.11
8.2.100.0100.00018.16
8.2.90.0000.00819.27
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0100.00017.78
8.2.50.0040.00418.07
8.2.40.0080.00019.97
8.2.30.0040.00418.20
8.2.20.0000.00817.59
8.2.10.0040.00418.10
8.2.00.0090.00019.48
8.1.280.0070.00725.92
8.1.270.0050.00324.01
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00522.04
8.1.230.0040.00719.14
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00018.52
8.1.160.0030.00522.04
8.1.150.0040.00418.64
8.1.140.0040.00417.36
8.1.130.0030.00317.87
8.1.120.0070.00017.43
8.1.110.0040.00417.48
8.1.100.0040.00417.34
8.1.90.0050.00317.35
8.1.80.0020.00517.43
8.1.70.0000.00717.43
8.1.60.0000.00817.64
8.1.50.0060.00317.54
8.1.40.0000.00817.41
8.1.30.0000.00817.54
8.1.20.0000.00817.63
8.1.10.0000.00717.42
8.1.00.0000.00817.47
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0070.00018.32
8.0.270.0030.00317.25
8.0.260.0000.00717.17
8.0.250.0000.00716.89
8.0.240.0000.00717.02
8.0.230.0000.00716.99
8.0.220.0050.00316.95
8.0.210.0070.00016.89
8.0.200.0000.00616.94
8.0.190.0020.00516.93
8.0.180.0040.00416.91
8.0.170.0020.00516.83
8.0.160.0000.00816.76
8.0.150.0060.00316.82
8.0.140.0030.00716.88
8.0.130.0000.00713.36
8.0.120.0000.00916.84
8.0.110.0040.00416.88
8.0.100.0000.00716.99
8.0.90.0000.00716.88
8.0.80.0130.01016.93
8.0.70.0070.00016.96
8.0.60.0080.00016.92
8.0.50.0000.00716.89
8.0.30.0130.01117.07
8.0.20.0120.00717.40
8.0.10.0050.00217.00
8.0.00.0090.01316.79
7.4.330.0000.00515.00
7.4.320.0060.00016.58
7.4.300.0000.00616.41
7.4.290.0040.00416.44
7.4.280.0050.00216.50
7.4.270.0070.00016.63
7.4.260.0030.00516.38
7.4.250.0040.00416.57
7.4.240.0020.00516.61
7.4.230.0030.00316.53
7.4.220.0040.01416.63
7.4.210.0060.00916.56
7.4.200.0000.00816.63
7.4.160.0060.01616.44
7.4.150.0060.01217.40
7.4.140.0080.01017.86
7.4.130.0110.00916.51
7.4.120.0090.00816.52
7.4.110.0050.01416.42
7.4.100.0150.00316.42
7.4.90.0100.00716.61
7.4.80.0060.01219.39
7.4.70.0030.02016.45
7.4.60.0000.01716.43
7.4.50.0060.00316.54
7.4.40.0100.00716.45
7.4.30.0060.01016.43
7.4.00.0120.00315.09
7.3.330.0000.00513.18
7.3.320.0000.00613.16
7.3.310.0080.00016.32
7.3.300.0030.00316.22
7.3.290.0090.00616.25
7.3.280.0090.00916.29
7.3.270.0200.00017.40
7.3.260.0060.01316.34
7.3.250.0110.01116.46
7.3.240.0130.00816.56
7.3.230.0100.00616.61
7.3.210.0130.00316.48
7.3.200.0040.01219.39
7.3.190.0170.00316.49
7.3.180.0000.01516.29
7.3.170.0070.01016.32
7.3.160.0130.00316.46
7.3.120.0040.01215.01
7.2.330.0190.00016.70
7.2.320.0060.01216.48
7.2.310.0030.01816.78
7.2.300.0080.00816.68
7.2.290.0100.00616.44
7.2.00.0060.00619.50
7.1.100.0300.00716.24
7.1.70.0040.00417.20
7.1.60.0090.01519.70
7.1.50.0130.01016.99
7.1.00.0130.06722.40
7.0.200.0000.00716.97
7.0.140.0000.07321.97
7.0.60.0100.08319.78
7.0.50.0070.08017.81
7.0.40.0070.08720.20
7.0.30.0270.04720.03
7.0.20.0370.04320.17
7.0.10.0130.06020.30
7.0.00.0070.04720.09
5.6.280.0030.07020.89
5.6.210.0130.07720.51
5.6.200.0100.03318.09
5.6.190.0070.05720.43
5.6.180.3670.04320.67
5.6.170.0430.06320.47
5.6.160.0170.03720.52
5.6.150.0030.05318.16
5.6.140.0030.04018.21
5.6.130.0030.08318.11
5.6.120.0170.04021.13
5.6.110.0000.05720.88
5.6.100.0030.07720.98
5.6.90.0100.05320.97
5.6.80.0030.08720.50
5.6.70.0030.07020.50
5.5.350.0070.07720.44
5.5.340.0000.04318.01
5.5.330.0100.07720.15
5.5.320.0330.06720.30
5.5.310.0230.07320.18
5.5.300.0070.08017.92
5.5.290.0030.08317.97
5.5.280.0000.05320.80
5.5.270.0070.08720.86
5.5.260.0070.07720.77
5.5.250.0130.07320.61
5.5.240.0270.04020.27
5.4.450.0300.07319.57
5.4.440.0300.07319.24
5.4.430.0270.07019.48
5.4.420.0270.07319.45
5.4.410.0270.07319.33
5.4.400.0330.06318.93
5.4.390.0230.07318.88
5.4.380.0270.07019.09
5.4.370.0230.05019.15
5.4.360.0200.05018.93
5.4.350.0270.07319.25
5.4.340.0270.06018.88
5.4.320.0300.06718.93
5.4.310.0270.06719.13
5.4.300.0270.05719.07
5.4.290.0300.07319.21
5.4.280.0200.05719.08
5.4.270.0170.07719.15
5.4.260.0230.04718.93
5.4.250.0270.07019.17
5.4.240.0200.06019.17
5.4.230.0230.05019.08
5.4.220.0170.05319.13
5.4.210.0230.04319.13
5.4.200.0230.07018.78
5.4.190.0230.07319.23
5.4.180.0230.08018.77
5.4.170.0230.03319.08
5.4.160.0300.04019.06
5.4.150.0230.07318.76
5.4.140.0300.06316.27
5.4.130.0200.06316.29
5.4.120.0200.03316.54
5.4.110.0270.06016.42
5.4.100.0270.06316.39
5.4.90.0230.06716.32
5.4.80.0330.05316.20
5.4.70.0230.06716.46
5.4.60.0300.05716.36
5.4.50.0200.04316.04
5.4.40.0230.03716.45
5.4.30.0100.05016.36
5.4.20.0230.03316.38
5.4.10.0200.04016.45
5.4.00.0300.05315.86
5.3.290.0230.05014.61
5.3.280.0230.07014.44
5.3.270.0230.04314.65
5.3.260.0400.03714.46
5.3.250.0300.04714.46
5.3.240.0370.03714.44
5.3.230.0200.05014.54
5.3.220.0270.07014.52
5.3.210.0300.04314.66
5.3.200.0170.06714.43
5.3.190.0230.07714.42
5.3.180.0330.05314.47
5.3.170.0200.05014.51
5.3.160.0200.06714.43
5.3.150.0230.06014.40
5.3.140.0200.04714.43
5.3.130.0270.04714.53
5.3.120.0170.04714.49
5.3.110.0230.03314.38
5.3.100.0230.06713.98
5.3.90.0270.06713.86
5.3.80.0330.05014.00
5.3.70.0270.07013.82
5.3.60.0370.04013.78
5.3.50.0330.06313.95
5.3.40.0200.05313.90
5.3.30.0230.05314.02
5.3.20.0200.07013.79
5.3.10.0270.04013.56
5.3.00.0230.04313.48
5.2.170.0270.05312.36
5.2.160.0230.03312.36
5.2.150.0170.05312.36
5.2.140.0170.04012.36
5.2.130.0230.05312.36
5.2.120.0200.06012.36
5.2.110.0200.05712.36
5.2.100.0130.06712.36
5.2.90.0200.03312.36
5.2.80.0170.04312.36
5.2.70.0230.03712.36
5.2.60.0200.04312.36
5.2.50.0200.05312.36
5.2.40.0100.04012.36
5.2.30.0170.06312.36
5.2.20.0230.05012.36
5.2.10.0200.05712.36
5.2.00.0230.05312.36
5.1.60.0130.05312.36
5.1.50.0170.05012.36
5.1.40.0230.04712.36
5.1.30.0130.05712.36
5.1.20.0170.03012.36
5.1.10.0230.05012.36
5.1.00.0200.05012.36
5.0.50.0070.04712.36
5.0.40.0070.02712.36
5.0.30.0130.04712.36
5.0.20.0100.04012.36
5.0.10.0130.03312.36
5.0.00.0100.03712.36
4.4.90.0130.03012.36
4.4.80.0030.02312.36
4.4.70.0130.03312.36
4.4.60.0100.02012.36
4.4.50.0070.03012.36
4.4.40.0070.04012.36
4.4.30.0030.03312.36
4.4.20.0070.03712.36
4.4.10.0100.02312.36
4.4.00.0070.05012.36
4.3.110.0100.03312.36
4.3.100.0100.03012.36
4.3.90.0070.03012.36
4.3.80.0100.04012.36
4.3.70.0070.03012.36
4.3.60.0100.03012.36
4.3.50.0070.02712.36
4.3.40.0100.05012.36
4.3.30.0030.03312.36
4.3.20.0030.03712.36
4.3.10.0070.03012.36
4.3.00.0070.03312.36

preferences:
41.46 ms | 401 KiB | 5 Q