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.0040.01516.85
8.3.50.0100.00522.30
8.3.40.0060.00918.95
8.3.30.0110.00419.14
8.3.20.0050.00320.30
8.3.10.0040.00423.66
8.3.00.0060.00619.11
8.2.180.0160.00016.50
8.2.170.0060.00922.96
8.2.160.0060.00820.45
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00319.38
8.2.110.0100.00020.53
8.2.100.0090.00318.22
8.2.90.0000.00919.27
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0060.00320.20
8.2.30.0000.00718.38
8.2.20.0000.00818.05
8.2.10.0000.00718.26
8.2.00.0030.00719.58
8.1.280.0090.00925.92
8.1.270.0080.00022.18
8.1.260.0100.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00024.00
8.1.230.0090.00319.28
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0000.01017.60
8.1.190.0030.00617.47
8.1.180.0030.00518.10
8.1.170.0030.00618.82
8.1.160.0000.00822.09
8.1.150.0030.00618.81
8.1.140.0040.00417.67
8.1.130.0070.00017.88
8.1.120.0070.00017.60
8.1.110.0000.00817.60
8.1.100.0040.00417.62
8.1.90.0000.00717.68
8.1.80.0000.00717.70
8.1.70.0050.00217.48
8.1.60.0030.00617.78
8.1.50.0040.00417.58
8.1.40.0060.00317.74
8.1.30.0030.00517.70
8.1.20.0090.00017.84
8.1.10.0030.00617.74
8.1.00.0030.00517.60
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0000.00818.43
8.0.270.0030.00617.22
8.0.260.0000.00717.31
8.0.250.0000.00717.17
8.0.240.0040.00417.00
8.0.230.0000.00817.04
8.0.220.0000.00717.08
8.0.210.0070.00017.10
8.0.200.0030.00317.14
8.0.190.0040.00417.13
8.0.180.0040.00417.09
8.0.170.0040.00417.12
8.0.160.0000.00717.18
8.0.150.0070.00416.96
8.0.140.0000.01116.88
8.0.130.0060.00313.52
8.0.120.0000.00817.00
8.0.110.0000.00816.98
8.0.100.0000.00716.96
8.0.90.0000.00816.96
8.0.80.0070.01017.11
8.0.70.0000.00817.18
8.0.60.0050.00317.05
8.0.50.0030.00517.16
8.0.30.0050.01417.28
8.0.20.0110.01217.50
8.0.10.0040.00417.05
8.0.00.0120.01116.98
7.4.330.0050.00015.13
7.4.320.0050.00516.74
7.4.300.0000.00616.74
7.4.290.0040.00416.77
7.4.280.0040.00416.64
7.4.270.0050.00316.89
7.4.260.0000.00716.63
7.4.250.0080.00016.66
7.4.240.0040.00416.73
7.4.230.0000.00716.67
7.4.220.0180.00616.88
7.4.210.0100.00316.75
7.4.200.0050.00316.68
7.4.160.0100.01016.61
7.4.150.0150.00617.40
7.4.140.0070.01117.86
7.4.130.0070.01116.75
7.4.120.0080.01016.50
7.4.110.0100.01716.62
7.4.100.0120.00616.70
7.4.90.0060.01316.63
7.4.80.0110.00919.39
7.4.70.0120.00616.72
7.4.60.0060.01216.81
7.4.50.0030.00616.59
7.4.40.0090.00916.57
7.4.30.0090.00916.66
7.4.00.0080.00315.31
7.3.330.0030.00313.34
7.3.320.0050.00013.36
7.3.310.0000.00716.56
7.3.300.0000.00716.56
7.3.290.0080.01416.46
7.3.280.0070.01216.49
7.3.270.0120.01217.40
7.3.260.0210.00416.96
7.3.250.0170.00716.54
7.3.240.0110.00816.84
7.3.230.0090.00916.80
7.3.210.0150.00316.40
7.3.200.0030.01419.39
7.3.190.0080.00816.76
7.3.180.0150.00616.31
7.3.170.0060.01016.55
7.3.160.0140.00316.77
7.3.120.0080.00814.88
7.2.330.0120.01216.73
7.2.320.0130.00616.79
7.2.310.0060.01616.78
7.2.300.0130.00316.87
7.2.290.0120.00616.83
7.2.00.0050.01019.38
7.1.200.0000.00715.95
7.1.100.0030.00918.25
7.1.70.0000.00817.33
7.1.60.0110.01419.70
7.1.50.0100.01616.97
7.1.00.0030.07722.37
7.0.200.0000.00817.01
7.0.140.0100.06721.97
7.0.60.0100.06720.05
7.0.50.0070.07317.89
7.0.40.0100.04020.11
7.0.30.0100.05320.22
7.0.20.0300.04720.19
7.0.10.0270.07020.18
7.0.00.0100.08020.05
5.6.280.0130.07721.01
5.6.210.0070.09020.62
5.6.200.0130.05718.23
5.6.190.0270.07020.42
5.6.180.0030.07320.40
5.6.170.0270.06720.33
5.6.160.0070.05020.62
5.6.150.0030.04018.13
5.6.140.0030.04318.13
5.6.130.0070.08018.18
5.6.120.0100.04021.14
5.6.110.0170.08021.09
5.6.100.0070.08020.96
5.6.90.0030.09021.16
5.6.80.0070.05320.38
5.6.70.3630.04720.24
5.5.350.0070.07720.39
5.5.340.0170.06718.02
5.5.330.0100.03720.07
5.5.320.0330.07020.27
5.5.310.0330.07020.31
5.5.300.0070.08017.91
5.5.290.0070.08317.98
5.5.280.0100.03720.89
5.5.270.0030.09020.87
5.5.260.0030.07320.89
5.5.250.0070.03720.61
5.5.240.0200.06720.26
5.4.450.0130.05043.73
5.4.440.0200.05337.17
5.4.430.0230.04033.63
5.4.420.0330.04333.62
5.4.410.0370.04033.60
5.4.400.1130.04319.25
5.4.390.0200.05031.27
5.4.380.1230.05318.70
5.4.370.0970.05018.58
5.4.360.0900.05318.63
5.4.350.0870.05318.70
5.4.340.0800.05718.63
5.4.320.0070.04012.48
5.4.310.0070.03812.47
5.4.300.0080.03612.47
5.4.290.0080.04012.47
5.4.280.0030.03912.37
5.4.270.0090.03312.36
5.4.260.0050.04012.36
5.4.250.0050.04112.36
5.4.240.0030.04012.37
5.4.230.0070.03912.36
5.4.220.0070.04212.36
5.4.210.0060.03612.36
5.4.200.0100.03612.36
5.4.190.0060.04112.36
5.4.180.0060.04212.35
5.4.170.0060.03612.37
5.4.160.0120.03712.36
5.4.150.0080.03412.36
5.4.140.0070.03712.04
5.4.130.0080.03312.03
5.4.120.0050.03711.99
5.4.110.0060.03711.98
5.4.100.0050.03711.99
5.4.90.0050.04011.98
5.4.80.0100.03311.98
5.4.70.0100.03511.98
5.4.60.0070.03611.98
5.4.50.0070.03511.98
5.4.40.0060.03611.97
5.4.30.0110.03111.97
5.4.20.0070.03411.96
5.4.10.0050.03611.96
5.4.00.0050.03711.46
5.3.290.0040.04112.80
5.3.280.0060.03812.71
5.3.270.0060.04112.72
5.3.260.0090.03612.72
5.3.250.0070.03612.72
5.3.240.0090.03812.72
5.3.230.0080.03912.71
5.3.220.0080.03612.68
5.3.210.0060.04012.68
5.3.200.0070.03612.68
5.3.190.0060.03812.67
5.3.180.0110.03712.68
5.3.170.0080.03612.66
5.3.160.0060.03712.67
5.3.150.0060.03812.67
5.3.140.0080.03512.66
5.3.130.0080.04312.66
5.3.120.0120.03612.66
5.3.110.0110.03512.66
5.3.100.0110.04112.11
5.3.90.0050.03812.09
5.3.80.0060.03712.08
5.3.70.0050.03812.08
5.3.60.0060.03712.07
5.3.50.0050.03712.01
5.3.40.0060.03712.02
5.3.30.0080.03411.97
5.3.20.0070.03511.75
5.3.10.0070.03511.73
5.3.00.0030.04011.71
5.2.170.0070.0299.21
5.2.160.0050.0309.21
5.2.150.0010.0359.21
5.2.140.0020.0359.21
5.2.130.0080.0369.17
5.2.120.0040.0319.17
5.2.110.0060.0299.17
5.2.100.0060.0289.17
5.2.90.0020.0349.17
5.2.80.0020.0349.16
5.2.70.0010.0349.16
5.2.60.0050.0309.12
5.2.50.0070.0369.08
5.2.40.0050.0349.06
5.2.30.0080.0309.04
5.2.20.0060.0369.03
5.2.10.0040.0308.94
5.2.00.0040.0318.80
5.1.60.0060.0238.08
5.1.50.0040.0268.08
5.1.40.0050.0258.06
5.1.30.0080.0248.41
5.1.20.0050.0268.43
5.1.10.0030.0278.16
5.1.00.0060.0258.16
5.0.50.0040.0216.63
5.0.40.0050.0196.50
5.0.30.0050.0306.31
5.0.20.0010.0226.28
5.0.10.0010.0236.25
5.0.00.0030.0326.25
4.4.90.0050.0144.78
4.4.80.0010.0174.76
4.4.70.0020.0184.75
4.4.60.0030.0154.75
4.4.50.0020.0174.77
4.4.40.0040.0254.71
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0040.0144.85
4.4.00.0040.0244.76
4.3.110.0020.0164.67
4.3.100.0010.0164.66
4.3.90.0040.0144.63
4.3.80.0030.0244.59
4.3.70.0030.0154.63
4.3.60.0060.0124.63
4.3.50.0030.0214.63
4.3.40.0060.0244.54
4.3.30.0020.0173.30
4.3.20.0060.0173.28
4.3.10.0010.0183.24
4.3.00.0070.02031.27

preferences:
39.91 ms | 401 KiB | 5 Q