3v4l.org

run code in 300+ PHP versions simultaneously
<?php $comentario = '\\'; $comentario = '/** * @var string * @Assert\NotBlank(message = "El nombre no puede estar vacĂ­o") * @Assert\Regex(pattern="/^ /", match = false, message="El nombre no puede empezar con espacios") * @Assert\Regex(pattern="/ $/", match = false, message="El nombre no puede terminar con espacios") */'; //preg_match( '/Assert\\\(?P<nombre>\w+)(.*)\s*/m', $comentario, $assert ); //preg_match_all( '/Assert\\\(?P<nombre>\w+)((?P<parametros>.+))\s*/m', $comentario, $assert ); //preg_match_all( '/Assert\\\(?P<nombre>\w+)\((.+)\)\s*/m', $comentario, $assert ); preg_match_all( '/Assert\\\(?P<nombre>\w+)\s*/m', $comentario, $assert ); var_dump($assert);

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.01118.55
8.3.50.0150.00621.23
8.3.40.0120.00318.56
8.3.30.0110.00418.95
8.3.20.0050.00320.34
8.3.10.0090.00020.61
8.3.00.0040.00419.25
8.2.180.0150.00316.50
8.2.170.0060.00922.96
8.2.160.0120.00318.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00022.23
8.2.110.0060.00320.50
8.2.100.0070.00417.91
8.2.90.0040.00419.20
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0030.00517.78
8.2.50.0050.00518.07
8.2.40.0050.00318.16
8.2.30.0050.00218.03
8.2.20.0000.00817.83
8.2.10.0000.00817.91
8.2.00.0050.00317.77
8.1.280.0060.01225.92
8.1.270.0080.00024.04
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0000.01023.91
8.1.230.0040.00819.09
8.1.220.0040.00417.79
8.1.210.0000.00918.77
8.1.200.0030.00617.25
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0060.00318.64
8.1.160.0000.00821.89
8.1.150.0000.00818.73
8.1.140.0070.00017.46
8.1.130.0030.00317.77
8.1.120.0080.00017.56
8.1.110.0040.00417.57
8.1.100.0080.00017.45
8.1.90.0030.00517.45
8.1.80.0000.00717.54
8.1.70.0000.00817.52
8.1.60.0050.00317.68
8.1.50.0000.00817.67
8.1.40.0000.00817.67
8.1.30.0030.00617.71
8.1.20.0000.00817.86
8.1.10.0000.00717.63
8.1.00.0040.00417.54
8.0.300.0070.00018.77
8.0.290.0000.00916.61
8.0.280.0030.00318.41
8.0.270.0000.00717.18
8.0.260.0000.00617.15
8.0.250.0000.00717.07
8.0.240.0030.00317.05
8.0.230.0000.00717.08
8.0.220.0000.00717.01
8.0.210.0000.00816.86
8.0.200.0000.00617.09
8.0.190.0040.00417.03
8.0.180.0000.00816.99
8.0.170.0030.00616.89
8.0.160.0000.00717.04
8.0.150.0000.00816.88
8.0.140.0040.00416.83
8.0.130.0000.00613.40
8.0.120.0080.00016.88
8.0.110.0040.00416.98
8.0.100.0000.00716.97
8.0.90.0030.00517.05
8.0.80.0120.00316.96
8.0.70.0040.00416.82
8.0.60.0040.00416.95
8.0.50.0040.00416.96
8.0.30.0060.01417.21
8.0.20.0110.00817.40
8.0.10.0040.00417.14
8.0.00.0130.00616.86
7.4.330.0030.00315.00
7.4.320.0030.00616.75
7.4.300.0090.00016.55
7.4.290.0030.00316.68
7.4.280.0050.00216.57
7.4.270.0070.00016.75
7.4.260.0070.00016.64
7.4.250.0000.00816.73
7.4.240.0050.00216.67
7.4.230.0040.00416.57
7.4.220.0120.00616.66
7.4.210.0090.00616.77
7.4.200.0000.00716.87
7.4.160.0030.01416.63
7.4.150.0070.01317.40
7.4.140.0130.00717.86
7.4.130.0080.00816.66
7.4.120.0080.01116.51
7.4.110.0140.00316.60
7.4.100.0080.01116.60
7.4.90.0220.00016.73
7.4.80.0120.01019.39
7.4.70.0100.00716.39
7.4.60.0090.00916.86
7.4.50.0050.00316.51
7.4.40.0060.01216.66
7.4.30.0110.00816.61
7.4.00.0100.00615.10
7.3.330.0030.00313.22
7.3.320.0040.00413.13
7.3.310.0070.00016.27
7.3.300.0060.00016.34
7.3.290.0090.00616.40
7.3.280.0100.00916.33
7.3.270.0100.01017.40
7.3.260.0060.01316.35
7.3.250.0130.00716.45
7.3.240.0130.00516.74
7.3.230.0140.00516.63
7.3.210.0130.00416.62
7.3.200.0070.01119.39
7.3.190.0080.00816.65
7.3.180.0100.00716.57
7.3.170.0080.00816.27
7.3.160.0060.00916.50
7.2.330.0030.01616.39
7.2.320.0000.01816.71
7.2.310.0100.00716.75
7.2.300.0100.00716.40
7.2.290.0110.01116.47
7.2.00.0070.01019.59
7.1.100.0070.00318.28
7.1.70.0040.00417.30
7.1.60.0110.01119.32
7.1.50.0070.01717.00
7.1.00.0070.07322.37
7.0.200.0040.00416.49
7.0.140.0030.07322.09
7.0.60.0170.07319.82
7.0.50.0070.08017.92
7.0.40.0000.06020.21
7.0.30.0270.07320.02
7.0.20.0330.05320.01
7.0.10.0030.09320.05
7.0.00.0000.04320.10
5.6.280.0030.07320.90
5.6.210.0100.04720.45
5.6.200.0030.08018.12
5.6.190.0130.08320.61
5.6.180.0270.04020.56
5.6.170.0330.04720.38
5.6.160.0000.05020.41
5.6.150.0030.04318.18
5.6.140.0100.03718.11
5.6.130.0100.08018.16
5.6.120.0100.05020.93
5.6.110.0070.08321.10
5.6.100.0030.04020.88
5.6.90.0030.04021.07
5.6.80.0030.07720.40
5.5.350.0170.07720.46
5.5.340.0100.08017.88
5.5.330.0170.07320.07
5.5.320.0370.04320.24
5.5.310.0300.06020.30
5.5.300.0130.07018.01
5.5.290.0030.04317.97
5.5.280.0100.08020.73
5.5.270.0070.05020.93
5.5.260.0070.08020.75
5.5.250.0070.04020.57
5.5.240.0330.06020.06
5.4.450.0330.04719.43
5.4.440.0830.05019.55
5.4.430.0570.03719.20
5.4.420.0670.00019.32
5.4.410.0630.00019.41
5.4.400.0600.00019.24
5.4.390.0630.00018.92
5.4.380.0630.00019.09
5.4.370.0730.00019.13
5.4.360.0600.00019.18
5.4.350.0630.00019.18
5.4.340.0630.00019.13
5.4.320.0070.05112.45
5.4.310.0060.04512.45
5.4.300.0110.04512.45
5.4.290.0100.04412.45
5.4.280.0030.04212.35
5.4.270.0040.03712.35
5.4.260.0040.04012.35
5.4.250.0080.03612.34
5.4.240.0070.03912.34
5.4.230.0030.04512.34
5.4.220.0090.03812.34
5.4.210.0060.03612.34
5.4.200.0080.03512.34
5.4.190.0020.03912.33
5.4.180.0080.03812.33
5.4.170.0030.04012.34
5.4.160.0070.03612.34
5.4.150.0080.03512.34
5.4.140.0070.03712.02
5.4.130.0060.03612.01
5.4.120.0090.03311.97
5.4.110.0090.03411.96
5.4.100.0020.04511.96
5.4.90.0080.04111.96
5.4.80.0050.04311.96
5.4.70.0080.03311.96
5.4.60.0050.03911.96
5.4.50.0080.03311.96
5.4.40.0050.03611.95
5.4.30.0060.03611.95
5.4.20.0040.03811.94
5.4.10.0040.03711.95
5.4.00.0060.04411.44
5.3.290.0090.03812.80
5.3.280.0080.03912.71
5.3.270.0070.03912.73
5.3.260.0110.04512.72
5.3.250.0100.04912.72
5.3.240.0090.04512.72
5.3.230.0060.04112.71
5.3.220.0060.04112.68
5.3.210.0090.03712.68
5.3.200.0050.03912.68
5.3.190.0060.04312.68
5.3.180.0070.03912.67
5.3.170.0060.03712.67
5.3.160.0030.04112.67
5.3.150.0060.04212.67
5.3.140.0070.03712.66
5.3.130.0100.04012.66
5.3.120.0090.03712.66
5.3.110.0070.04112.66
5.3.100.0060.03712.12
5.3.90.0050.03712.09
5.3.80.0090.03812.07
5.3.70.0090.03512.08
5.3.60.0070.03612.06
5.3.50.0050.03912.00
5.3.40.0060.04112.00
5.3.30.0020.04511.96
5.3.20.0050.03611.73
5.3.10.0060.04611.70
5.3.00.0070.04411.69
5.2.170.0050.0359.19
5.2.160.0070.0299.19
5.2.150.0070.0299.19
5.2.140.0020.0339.19
5.2.130.0080.0259.14
5.2.120.0070.0279.15
5.2.110.0060.0299.16
5.2.100.0050.0349.15
5.2.90.0040.0319.15
5.2.80.0070.0299.14
5.2.70.0080.0319.14
5.2.60.0060.0309.10
5.2.50.0020.0379.07
5.2.40.0060.0289.05
5.2.30.0070.0289.02
5.2.20.0040.0309.01
5.2.10.0060.0278.92
5.2.00.0060.0278.78
5.1.60.0060.0298.06
5.1.50.0070.0248.06
5.1.40.0090.0248.04
5.1.30.0040.0298.39
5.1.20.0040.0308.41
5.1.10.0060.0278.13
5.1.00.0050.0278.14
5.0.50.0040.0246.61
5.0.40.0040.0206.48
5.0.30.0040.0326.28
5.0.20.0040.0196.26
5.0.10.0060.0226.24
5.0.00.0060.0336.23
4.4.90.0020.0174.78
4.4.80.0030.0154.75
4.4.70.0030.0164.75
4.4.60.0010.0194.76
4.4.50.0030.0154.77
4.4.40.0030.0264.71
4.4.30.0020.0184.76
4.4.20.0040.0154.85
4.4.10.0010.0174.85
4.4.00.0030.0254.76
4.3.110.0010.0174.67
4.3.100.0010.0174.66
4.3.90.0060.0114.64
4.3.80.0040.0244.59
4.3.70.0070.0144.63
4.3.60.0040.0144.63
4.3.50.0040.0144.63
4.3.40.0030.0274.54
4.3.30.0010.0173.28
4.3.20.0020.0163.26
4.3.10.0020.0173.22
4.3.00.0100.01713.59

preferences:
38.41 ms | 401 KiB | 5 Q