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 Giants'; foreach($mlbCities as $city) { $fl_array = preg_match("/{$city}/", $string); var_dump($fl_array); } ?>

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.0160.00316.63
8.3.50.0080.01022.11
8.3.40.0060.00918.82
8.3.30.0120.00319.09
8.3.20.0050.00320.34
8.3.10.0040.00421.90
8.3.00.0080.00321.02
8.2.180.0070.01116.88
8.2.170.0070.01122.96
8.2.160.0040.01120.57
8.2.150.0000.00824.18
8.2.140.0150.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.61
8.2.110.0030.00822.32
8.2.100.0120.00018.16
8.2.90.0000.00919.21
8.2.80.0030.00617.97
8.2.70.0090.00017.48
8.2.60.0030.00617.80
8.2.50.0090.00018.07
8.2.40.0100.00020.07
8.2.30.0080.00018.31
8.2.20.0040.00417.84
8.2.10.0030.00618.30
8.2.00.0030.00519.62
8.1.280.0160.00625.92
8.1.270.0130.00723.88
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00424.04
8.1.230.0080.00619.33
8.1.220.0000.00817.77
8.1.210.0060.00318.77
8.1.200.0030.00617.60
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0030.00518.77
8.1.160.0040.00421.95
8.1.150.0000.00818.76
8.1.140.0070.00017.51
8.1.130.0050.00317.89
8.1.120.0030.00517.68
8.1.110.0030.00617.57
8.1.100.0000.00817.52
8.1.90.0000.00717.54
8.1.80.0000.00917.68
8.1.70.0070.00017.63
8.1.60.0000.00917.79
8.1.50.0040.00417.72
8.1.40.0050.00317.70
8.1.30.0040.00417.75
8.1.20.0050.00317.66
8.1.10.0000.00817.76
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0030.00516.88
8.0.280.0040.00418.49
8.0.270.0030.00317.24
8.0.260.0040.00417.19
8.0.250.0000.00717.15
8.0.240.0070.00017.02
8.0.230.0050.00317.20
8.0.220.0040.00416.94
8.0.210.0030.00417.06
8.0.200.0000.00716.98
8.0.190.0060.00317.15
8.0.180.0000.00817.16
8.0.170.0030.00617.14
8.0.160.0060.00316.98
8.0.150.0040.00416.96
8.0.140.0030.00716.91
8.0.130.0070.00013.46
8.0.120.0040.00417.05
8.0.110.0040.00417.09
8.0.100.0000.00717.18
8.0.90.0000.00816.88
8.0.80.0030.01417.03
8.0.70.0040.00417.11
8.0.60.0070.00017.06
8.0.50.0040.00416.96
8.0.30.0110.01117.08
8.0.20.0080.01217.40
8.0.10.0030.00517.25
8.0.00.0090.01116.99
7.4.330.0030.00315.21
7.4.320.0060.00016.75
7.4.300.0040.00416.69
7.4.290.0040.00416.66
7.4.280.0060.00316.73
7.4.270.0040.00416.67
7.4.260.0100.00016.80
7.4.250.0070.00016.61
7.4.240.0000.00716.79
7.4.230.0000.00716.59
7.4.220.0030.01716.89
7.4.210.0060.00916.80
7.4.200.0070.00016.63
7.4.160.0220.00416.65
7.4.150.0060.01217.40
7.4.140.0060.01317.86
7.4.130.0140.00616.70
7.4.120.0110.00716.72
7.4.110.0160.01016.75
7.4.100.0090.01816.76
7.4.90.0090.00916.75
7.4.80.0070.01419.39
7.4.70.0030.01616.95
7.4.60.0060.01016.57
7.4.50.0000.00816.69
7.4.40.0070.01416.61
7.4.30.0100.00716.60
7.4.00.0030.01215.17
7.3.330.0030.00313.26
7.3.320.0030.00313.33
7.3.310.0000.00716.47
7.3.300.0070.00016.44
7.3.290.0060.00916.50
7.3.280.0120.00816.50
7.3.270.0090.00917.40
7.3.260.0100.00916.91
7.3.250.0070.01416.78
7.3.240.0180.00016.84
7.3.230.0080.00916.90
7.3.210.0190.00616.48
7.3.200.0140.00419.39
7.3.190.0140.00316.46
7.3.180.0100.00716.72
7.3.170.0110.00616.51
7.3.160.0090.01216.38
7.3.120.0080.00415.03
7.3.110.0120.00615.28
7.3.100.0030.01015.29
7.3.90.0130.00715.27
7.3.80.0000.01515.16
7.3.70.0100.01015.01
7.3.60.0070.00715.14
7.3.50.0000.01014.98
7.3.40.0000.01514.89
7.3.30.0060.00614.81
7.3.20.0000.01516.88
7.3.10.0060.00316.96
7.3.00.0090.00616.96
7.2.330.0000.01916.85
7.2.320.0030.01516.95
7.2.310.0120.00616.86
7.2.300.0100.01416.88
7.2.290.0120.00616.95
7.2.240.0060.00915.45
7.2.230.0100.01015.41
7.2.220.0170.00315.04
7.2.210.0060.01015.37
7.2.200.0070.00415.32
7.2.190.0150.00315.31
7.2.180.0060.00315.36
7.2.170.0110.00315.36
7.2.160.0030.01015.31
7.2.150.0040.01117.16
7.2.140.0030.00817.09
7.2.130.0130.00717.17
7.2.120.0270.01017.06
7.2.110.0030.01216.90
7.2.100.0080.00417.13
7.2.90.0040.00817.23
7.2.80.0070.00716.86
7.2.70.0000.01217.34
7.2.60.0090.00617.17
7.2.50.0130.00317.20
7.2.40.0100.00717.31
7.2.30.0000.01517.13
7.2.20.0080.00417.28
7.2.10.0080.00416.97
7.2.00.0020.01218.28
7.1.330.0090.00415.62
7.1.320.0060.00616.05
7.1.310.0030.01315.87
7.1.300.0090.00615.94
7.1.290.0120.00415.94
7.1.280.0060.00916.05
7.1.270.0030.01115.92
7.1.260.0000.01716.09
7.1.250.0070.00715.98
7.1.200.0030.01015.82
7.1.100.0040.00818.31
7.1.70.0060.00317.43
7.1.60.0110.01519.70
7.1.50.0090.00917.27
7.1.00.0070.07322.41
7.0.200.0000.00717.09
7.0.140.0000.07722.07
7.0.60.0030.07019.95
7.0.50.0070.08017.93
7.0.40.0030.08320.29
7.0.30.0500.07020.12
7.0.20.0270.08320.05
7.0.10.0070.09320.22
7.0.00.0000.09320.15
5.6.280.0070.07021.09
5.6.210.0100.04320.69
5.6.200.0000.04318.23
5.6.190.0130.06320.57
5.6.180.3400.04020.38
5.6.170.0170.04720.54
5.6.160.0000.08720.48
5.6.150.0030.04018.13
5.6.140.0100.08018.18
5.6.130.0130.07318.19
5.6.120.0070.07320.97
5.6.110.0200.05320.96
5.6.100.0100.06721.05
5.6.90.0170.07320.99
5.6.80.0030.04720.58
5.6.70.4030.04020.38
5.5.350.0030.07720.47
5.5.340.0000.08317.99
5.5.330.0170.06020.16
5.5.320.0270.07020.08
5.5.310.0170.08320.32
5.5.300.0070.07717.91
5.5.290.0030.09017.96
5.5.280.0070.06020.84
5.5.270.0130.07720.86
5.5.260.0170.06720.89
5.5.250.0070.06720.71
5.5.240.0400.06020.12
5.4.450.0430.04043.75
5.4.440.0100.05737.17
5.4.430.0230.04033.63
5.4.420.0470.03033.62
5.4.410.0500.04333.62
5.4.400.0230.04033.60
5.4.390.0370.05031.27
5.4.380.0230.05318.53
5.4.370.0230.05018.71
5.4.360.0200.05018.62
5.4.350.0330.04318.71
5.4.340.0130.06318.59
5.4.320.0070.04112.47
5.4.310.0060.04212.47
5.4.300.0100.03612.47
5.4.290.0120.04712.46
5.4.280.0120.04912.36
5.4.270.0070.05112.36
5.4.260.0090.05212.36
5.4.250.0090.05112.36
5.4.240.0100.05012.36
5.4.230.0080.04812.36
5.4.220.0060.03912.35
5.4.210.0040.05412.36
5.4.200.0050.04012.36
5.4.190.0050.04412.35
5.4.180.0060.03712.35
5.4.170.0090.03812.36
5.4.160.0070.03712.36
5.4.150.0060.04212.35
5.4.140.0090.05012.04
5.4.130.0090.03812.02
5.4.120.0070.04311.98
5.4.110.0070.03611.98
5.4.100.0080.03511.98
5.4.90.0060.03811.98
5.4.80.0050.03811.98
5.4.70.0030.04111.98
5.4.60.0040.03711.98
5.4.50.0060.03511.98
5.4.40.0060.03511.96
5.4.30.0070.04011.96
5.4.20.0060.03911.96
5.4.10.0070.03611.96
5.4.00.0050.03811.45
5.3.290.0080.03612.80
5.3.280.0090.03512.71
5.3.270.0070.03912.73
5.3.260.0090.04112.72
5.3.250.0060.04512.72
5.3.240.0050.03912.72
5.3.230.0050.05112.71
5.3.220.0100.05112.68
5.3.210.0090.03812.68
5.3.200.0060.03812.68
5.3.190.0070.03912.68
5.3.180.0090.03612.67
5.3.170.0070.03712.67
5.3.160.0050.03912.67
5.3.150.0060.04512.67
5.3.140.0080.03512.66
5.3.130.0060.04012.65
5.3.120.0070.03912.66
5.3.110.0110.04212.65
5.3.100.0070.03812.12
5.3.90.0060.04112.10
5.3.80.0060.03612.07
5.3.70.0070.03512.08
5.3.60.0070.03612.06
5.3.50.0060.03612.01
5.3.40.0080.03412.01
5.3.30.0080.03211.96
5.3.20.0050.03711.75
5.3.10.0070.03811.71
5.3.00.0050.03811.70
5.2.170.0040.0319.20
5.2.160.0030.0339.21
5.2.150.0060.0409.20
5.2.140.0090.0389.20
5.2.130.0050.0329.16
5.2.120.0060.0399.16
5.2.110.0070.0379.17
5.2.100.0020.0319.16
5.2.90.0050.0289.17
5.2.80.0090.0399.16
5.2.70.0080.0409.16
5.2.60.0030.0349.11
5.2.50.0060.0309.08
5.2.40.0030.0319.06
5.2.30.0070.0289.04
5.2.20.0050.0299.02
5.2.10.0070.0358.93
5.2.00.0050.0288.79
5.1.60.0030.0288.08
5.1.50.0050.0248.07
5.1.40.0030.0268.05
5.1.30.0060.0258.40
5.1.20.0040.0278.43
5.1.10.0050.0278.15
5.1.00.0060.0288.15
5.0.50.0040.0216.63
5.0.40.0040.0286.49
5.0.30.0030.0436.30
5.0.20.0030.0276.27
5.0.10.0030.0256.25
5.0.00.0030.0326.25
4.4.90.0070.0154.78
4.4.80.0050.0134.75
4.4.70.0040.0144.75
4.4.60.0070.0154.75
4.4.50.0030.0234.77
4.4.40.0040.0264.71
4.4.30.0040.0164.76
4.4.20.0010.0224.84
4.4.10.0040.0154.85
4.4.00.0050.0284.76
4.3.110.0030.0214.67
4.3.100.0040.0184.66
4.3.90.0030.0164.64
4.3.80.0060.0234.59
4.3.70.0020.0174.63
4.3.60.0060.0194.63
4.3.50.0020.0184.63
4.3.40.0030.0254.54
4.3.30.0020.0173.30
4.3.20.0050.0143.27
4.3.10.0040.0143.23
4.3.00.0130.02314.89

preferences:
44.93 ms | 401 KiB | 5 Q