3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string='maría'; $vocales = preg_match_all('/[aeiouáéíó]/i',$string, $matchesV); $matchesV = $matchesV[0]; echo "<br>vocales = $vocales"; if ((in_array('á',$matchesV))||(in_array('é',$matchesV)) || (in_array('í',$matchesV)) || (in_array('ó',$matchesV))){ $v = $vocales - 1; echo "<br>v $v"; echo '<br>1'; }

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.0080.01116.88
8.3.50.0140.00823.08
8.3.40.0180.00318.86
8.3.30.0110.00418.98
8.3.20.0040.00420.21
8.3.10.0040.00423.39
8.3.00.0050.00319.51
8.2.180.0070.01116.88
8.2.170.0140.00422.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00621.16
8.2.110.0030.00620.42
8.2.100.0090.00318.03
8.2.90.0090.00219.22
8.2.80.0040.00417.97
8.2.70.0000.00917.88
8.2.60.0090.00018.03
8.2.50.0000.00918.07
8.2.40.0000.01118.34
8.2.30.0040.00418.25
8.2.20.0040.00417.96
8.2.10.0050.00318.23
8.2.00.0080.00017.79
8.1.280.0070.00725.92
8.1.270.0060.00322.36
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0070.00320.84
8.1.220.0040.00417.89
8.1.210.0000.00818.77
8.1.200.0030.00717.48
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0030.00618.72
8.1.160.0000.00722.07
8.1.150.0030.00518.98
8.1.140.0070.00017.50
8.1.130.0000.00717.88
8.1.120.0080.00017.67
8.1.110.0040.00417.62
8.1.100.0040.00417.55
8.1.90.0050.00317.59
8.1.80.0030.00417.52
8.1.70.0070.00017.52
8.1.60.0040.00517.68
8.1.50.0050.00317.75
8.1.40.0100.00017.46
8.1.30.0000.00817.78
8.1.20.0000.00717.79
8.1.10.0040.00417.75
8.1.00.0060.00317.70
8.0.300.0080.00018.77
8.0.290.0040.00417.00
8.0.280.0030.00318.54
8.0.270.0040.00417.26
8.0.260.0030.00317.30
8.0.250.0070.00017.11
8.0.240.0070.00017.14
8.0.230.0040.00417.09
8.0.220.0030.00317.13
8.0.210.0000.00716.97
8.0.200.0000.00717.13
8.0.190.0020.00517.09
8.0.180.0040.00416.98
8.0.170.0000.00917.09
8.0.160.0040.00417.00
8.0.150.0000.00717.02
8.0.140.0040.00417.03
8.0.130.0000.00513.44
8.0.120.0030.00516.91
8.0.110.0030.00417.11
8.0.100.0040.00416.84
8.0.90.0000.00716.94
8.0.80.0030.01417.12
8.0.70.0000.00717.11
8.0.60.0040.00417.13
8.0.50.0040.00417.10
8.0.30.0090.00917.32
8.0.20.0060.01417.40
8.0.10.0030.00516.97
8.0.00.0090.00916.76
7.4.330.0000.00515.05
7.4.320.0030.00316.88
7.4.300.0040.00416.75
7.4.290.0050.00216.64
7.4.280.0030.00316.83
7.4.270.0030.00316.82
7.4.260.0060.00616.86
7.4.250.0000.00816.66
7.4.240.0060.00116.73
7.4.230.0000.00716.91
7.4.220.0110.00616.87
7.4.210.0090.00516.78
7.4.200.0040.00416.65
7.4.160.0160.00016.66
7.4.150.0150.00317.40
7.4.140.0090.00917.86
7.4.130.0100.00916.73
7.4.120.0110.00616.67
7.4.110.0070.01016.70
7.4.100.0110.00616.89
7.4.90.0110.01316.87
7.4.80.0030.01519.39
7.4.70.0120.00316.74
7.4.60.0030.01316.71
7.4.50.0020.00216.84
7.4.40.0070.01116.57
7.4.30.0130.00316.68
7.4.00.0040.01115.03
7.3.330.0000.00613.13
7.3.320.0030.00313.20
7.3.310.0030.00316.45
7.3.300.0000.00716.28
7.3.290.0070.01016.46
7.3.280.0090.00916.47
7.3.270.0090.00917.40
7.3.260.0170.00716.75
7.3.250.0070.01016.58
7.3.240.0100.00716.49
7.3.230.0100.00716.77
7.3.210.0110.00716.63
7.3.200.0100.00719.39
7.3.190.0130.00316.64
7.3.180.0060.01016.66
7.3.170.0060.00916.54
7.3.160.0170.00016.61
7.3.10.0090.00616.59
7.3.00.0040.01016.76
7.2.330.0060.01716.92
7.2.320.0130.00416.80
7.2.310.0090.00616.77
7.2.300.0160.00616.67
7.2.290.0120.01116.87
7.2.130.0110.00316.93
7.2.120.0030.01017.06
7.2.110.0050.01017.04
7.2.100.0080.00816.76
7.2.90.0080.00816.99
7.2.80.0050.00617.05
7.2.70.0050.00917.06
7.2.60.0030.00917.11
7.2.50.0030.00816.85
7.2.40.0050.01116.95
7.2.30.0050.01017.00
7.2.20.0130.00216.79
7.2.10.0020.01016.95
7.2.00.0030.01117.92
7.1.250.0040.01015.87
7.1.200.0030.01016.14
7.1.100.0050.00318.38
7.1.70.0000.00717.23
7.1.60.0140.01119.40
7.1.50.0060.01917.28
7.1.00.0030.07722.52
7.0.200.0070.00317.01
7.0.140.0030.06721.95
7.0.60.0070.07319.93
7.0.50.0070.07717.91
7.0.40.0030.04720.32
7.0.30.0230.08320.23
7.0.20.0070.05020.21
7.0.10.0000.06320.34
7.0.00.0070.07020.02
5.6.280.0030.07321.04
5.6.210.0100.08020.50
5.6.200.0070.05018.11
5.6.190.0030.05020.48
5.6.180.0170.04320.41
5.6.170.0230.08320.38
5.6.160.0070.04720.47
5.6.150.0100.06018.13
5.6.140.0100.07718.07
5.6.130.0000.04318.18
5.6.120.0070.08321.07
5.6.110.0130.07720.96
5.6.100.0000.09020.95
5.6.90.0130.08021.12
5.6.80.0100.08020.28
5.5.350.4270.04020.30
5.5.340.0070.03717.98
5.5.330.0000.04720.13
5.5.320.0230.07320.51
5.5.310.0430.05720.31
5.5.300.0070.07718.02
5.5.290.0130.03017.98
5.5.280.0070.08020.79
5.5.270.0100.04720.82
5.5.260.0100.07020.64
5.5.250.0030.04020.61
5.5.240.0000.07320.23
5.4.450.1130.06019.32
5.4.440.0800.05019.25
5.4.430.0630.05319.41
5.4.420.0530.05319.14
5.4.410.0600.05319.35
5.4.400.0700.07019.15
5.4.390.1000.06719.00
5.4.380.0170.05718.67
5.4.370.0100.04018.50
5.4.360.0100.04018.61
5.4.350.0090.06611.98
5.4.340.0030.04111.97
5.4.320.0100.03412.46
5.4.310.0100.03912.45
5.4.300.0100.04612.46
5.4.290.0060.03812.45
5.4.280.0050.03612.35
5.4.270.0080.03812.35
5.4.260.0130.03512.35
5.4.250.0030.04212.35
5.4.240.0080.03612.35
5.4.230.0100.04412.34
5.4.220.0050.03712.34
5.4.210.0060.03712.34
5.4.200.0070.04612.34
5.4.190.0060.04112.34
5.4.180.0050.03612.34
5.4.170.0070.04712.35
5.4.160.0050.03712.34
5.4.150.0090.03312.34
5.4.140.0040.03812.02
5.4.130.0080.03412.02
5.4.120.0050.04311.97
5.4.110.0050.04111.96
5.4.100.0080.03311.96
5.4.90.0050.03811.97
5.4.80.0060.03611.97
5.4.70.0060.03411.96
5.4.60.0030.03711.96
5.4.50.0050.03911.96
5.4.40.0060.03511.96
5.4.30.0060.03611.95
5.4.20.0060.03711.95
5.4.10.0100.03311.95
5.4.00.0050.03611.43
5.3.290.0060.03912.80
5.3.280.0060.03712.71
5.3.270.0080.03712.72
5.3.260.0100.03512.72
5.3.250.0040.03912.72
5.3.240.0060.03812.72
5.3.230.0080.03612.70
5.3.220.0050.03812.68
5.3.210.0070.03712.68
5.3.200.0060.03612.68
5.3.190.0060.03812.68
5.3.180.0010.04112.67
5.3.170.0050.03712.67
5.3.160.0060.03612.68
5.3.150.0050.04012.67
5.3.140.0060.03912.66
5.3.130.0040.04412.66
5.3.120.0040.04012.66
5.3.110.0050.04012.66
5.3.100.0070.03612.12
5.3.90.0050.03712.08
5.3.80.0070.03412.08
5.3.70.0060.03612.07
5.3.60.0070.03512.06
5.3.50.0060.03712.00
5.3.40.0050.03812.00
5.3.30.0040.03611.94
5.3.20.0070.04111.72
5.3.10.0070.04011.69
5.3.00.0080.04011.68
5.2.170.0040.0309.18
5.2.160.0030.0329.18
5.2.150.0050.0309.18
5.2.140.0050.0299.17
5.2.130.0050.0299.13
5.2.120.0040.0299.13
5.2.110.0050.0289.14
5.2.100.0050.0279.14
5.2.90.0010.0329.14
5.2.80.0040.0309.14
5.2.70.0040.0379.13
5.2.60.0050.0449.09
5.2.50.0060.0419.05
5.2.40.0020.0309.04
5.2.30.0030.0309.02
5.2.20.0080.0399.00
5.2.10.0050.0288.93
5.2.00.0080.0258.80
5.1.60.0060.0238.08
5.1.50.0030.0258.08
5.1.40.0080.0258.06
5.1.30.0030.0278.41
5.1.20.0030.0288.43
5.1.10.0020.0288.15
5.1.00.0040.0268.15
5.0.50.0050.0186.63
5.0.40.0060.0206.50
5.0.30.0060.0366.30
5.0.20.0030.0196.27
5.0.10.0040.0196.25
5.0.00.0040.0306.24
4.4.90.0050.0134.78
4.4.80.0030.0144.75
4.4.70.0020.0174.75
4.4.60.0020.0154.76
4.4.50.0040.0174.77
4.4.40.0030.0344.71
4.4.30.0050.0274.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0020.0264.76
4.3.110.0040.0144.67
4.3.100.0010.0174.66
4.3.90.0030.0144.64
4.3.80.0010.0264.58
4.3.70.0040.0134.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0010.0254.53
4.3.30.0020.0203.30
4.3.20.0020.0203.28
4.3.10.0010.0163.24
4.3.00.0100.0238.45

preferences:
32.44 ms | 401 KiB | 5 Q