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") */'; echo preg_match( '/Assert\\\/m', $comentario, $assert ); var_dump($assert); echo preg_match( '/Assert\\\(.*)\s*/m', $comentario, $assert ); var_dump($assert); echo preg_match( '/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.0130.00718.31
8.3.50.0120.01022.14
8.3.40.0120.00318.79
8.3.30.0000.01519.21
8.3.20.0040.00420.18
8.3.10.0060.00320.79
8.3.00.0080.00019.38
8.2.180.0060.01016.75
8.2.170.0090.00622.96
8.2.160.0040.01218.93
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00322.18
8.2.110.0080.00020.36
8.2.100.0120.00018.09
8.2.90.0050.00319.16
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0000.00917.93
8.2.50.0080.00018.07
8.2.40.0060.00318.05
8.2.30.0020.00518.04
8.2.20.0040.00417.72
8.2.10.0040.00418.09
8.2.00.0070.00017.77
8.1.280.0130.00325.92
8.1.270.0060.00323.96
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0050.00524.04
8.1.230.0070.00419.02
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0000.00818.64
8.1.160.0040.00421.90
8.1.150.0040.00418.71
8.1.140.0040.00417.53
8.1.130.0000.00717.73
8.1.120.0020.00517.49
8.1.110.0040.00417.45
8.1.100.0000.00717.61
8.1.90.0000.00717.51
8.1.80.0000.00717.57
8.1.70.0040.00417.50
8.1.60.0030.00617.71
8.1.50.0000.00817.50
8.1.40.0000.00717.52
8.1.30.0090.00017.69
8.1.20.0000.00817.81
8.1.10.0030.00617.68
8.1.00.0000.00717.59
8.0.300.0040.00418.77
8.0.290.0020.00516.88
8.0.280.0000.00718.39
8.0.270.0070.00017.20
8.0.260.0000.00717.23
8.0.250.0030.00317.07
8.0.240.0030.00517.14
8.0.230.0000.00716.91
8.0.220.0000.00716.96
8.0.210.0000.00716.91
8.0.200.0070.00017.03
8.0.190.0030.00516.98
8.0.180.0000.00817.01
8.0.170.0030.00617.01
8.0.160.0000.00716.86
8.0.150.0040.00416.94
8.0.140.0000.00716.88
8.0.130.0060.00013.34
8.0.120.0000.00716.89
8.0.110.0070.00016.96
8.0.100.0000.00716.86
8.0.90.0030.00516.86
8.0.80.0090.00616.90
8.0.70.0040.00416.93
8.0.60.0050.00316.95
8.0.50.0000.00716.96
8.0.30.0130.00817.29
8.0.20.0120.00817.40
8.0.10.0000.00817.18
8.0.00.0140.00616.76
7.4.330.0000.00515.00
7.4.320.0040.00416.81
7.4.300.0000.00816.75
7.4.290.0070.00016.68
7.4.280.0000.00816.66
7.4.270.0020.00516.61
7.4.260.0090.00016.77
7.4.250.0040.00416.70
7.4.240.0070.00016.68
7.4.230.0030.00316.87
7.4.220.0060.01616.68
7.4.210.0030.01216.63
7.4.200.0030.00316.84
7.4.160.0080.01616.59
7.4.150.0070.01817.40
7.4.140.0090.00917.86
7.4.130.0130.00616.59
7.4.120.0130.00816.78
7.4.110.0090.00916.64
7.4.100.0140.01016.51
7.4.90.0100.00716.64
7.4.80.0100.01019.39
7.4.70.0070.01016.66
7.4.60.0130.01216.67
7.4.50.0080.00016.69
7.4.40.0110.00516.59
7.4.30.0060.00916.76
7.4.00.0100.00714.96
7.3.330.0030.00313.20
7.3.320.0060.00013.04
7.3.310.0030.00316.13
7.3.300.0050.00316.30
7.3.290.0070.01416.30
7.3.280.0070.01016.33
7.3.270.0120.00917.40
7.3.260.0070.01016.46
7.3.250.0090.00816.44
7.3.240.0060.01116.30
7.3.230.0110.01116.39
7.3.210.0100.00716.54
7.3.200.0110.01119.39
7.3.190.0160.00716.60
7.3.180.0080.00816.62
7.3.170.0070.01016.46
7.3.160.0110.00516.61
7.3.120.0030.01214.68
7.3.110.0100.01014.88
7.3.100.0060.00614.61
7.3.90.0030.01214.90
7.3.80.0080.00814.96
7.3.70.0030.01014.61
7.3.60.0070.00415.01
7.3.50.0080.00614.96
7.3.40.0090.00614.92
7.3.30.0040.00414.55
7.3.20.0120.00316.79
7.3.10.0110.00416.74
7.3.00.0060.00616.75
7.2.330.0120.00616.81
7.2.320.0090.00916.52
7.2.310.0060.01016.61
7.2.300.0100.00816.73
7.2.290.0130.00516.63
7.2.250.0140.00714.92
7.2.240.0060.00915.05
7.2.230.0040.01115.18
7.2.220.0070.00715.24
7.2.210.0070.01015.26
7.2.200.0070.00714.85
7.2.190.0090.00615.18
7.2.180.0060.00914.98
7.2.170.0030.01014.92
7.2.60.0110.00416.98
7.1.330.0030.01215.90
7.1.320.0000.01715.92
7.1.310.0030.01015.71
7.1.300.0000.01415.92
7.1.290.0030.00616.01
7.1.280.0030.00615.82
7.1.270.0070.00415.55
7.1.260.0090.00616.09
7.1.200.0090.00315.96
7.1.100.0060.00617.75
7.1.70.0000.00817.28
7.1.60.0030.02219.32
7.1.50.0090.01217.15
7.1.00.0030.07722.47
7.0.200.0000.00917.00
7.0.140.0030.07022.15
7.0.70.4900.04319.93
7.0.60.0200.08019.95
7.0.50.0130.05317.68
7.0.40.0030.07320.10
7.0.30.0670.06720.11
7.0.20.0330.07020.36
7.0.10.0200.05320.21
7.0.00.0100.08020.03
5.6.280.0030.07320.88
5.6.210.0100.08320.73
5.6.200.0070.07018.13
5.6.190.0000.08320.76
5.6.180.0130.07320.56
5.6.170.0300.05020.40
5.6.160.0000.08020.41
5.6.150.0000.04318.12
5.6.140.0030.05018.23
5.6.130.0200.06718.22
5.6.120.0100.08321.00
5.6.110.0100.07720.96
5.6.100.0100.05320.96
5.6.90.0170.06721.09
5.6.80.0100.06020.37
5.6.70.0170.06320.42
5.5.350.0030.07020.46
5.5.340.0030.04017.88
5.5.330.0070.05320.57
5.5.320.0000.04320.21
5.5.310.0300.07320.32
5.5.300.0030.05717.93
5.5.290.0030.06718.01
5.5.280.0070.04020.77
5.5.270.0030.08320.75
5.5.260.0100.08320.84
5.5.250.0170.07320.65
5.5.240.0070.04720.06
5.4.450.0070.05719.46
5.4.440.0400.04019.24
5.4.430.0370.05319.44
5.4.420.0670.00019.30
5.4.410.0770.00019.53
5.4.400.0900.00019.01
5.4.390.0870.00018.98
5.4.380.0770.00019.06
5.4.370.0630.00019.04
5.4.360.0870.00019.16
5.4.350.0630.00019.00
5.4.340.0700.00018.92
5.4.320.0070.04412.45
5.4.310.0070.04012.45
5.4.300.0090.03512.45
5.4.290.0060.05412.45
5.4.280.0140.04612.35
5.4.270.0070.04212.35
5.4.260.0070.03612.34
5.4.250.0090.03712.34
5.4.240.0050.04212.35
5.4.230.0030.04212.34
5.4.220.0050.04112.34
5.4.210.0100.03712.34
5.4.200.0080.04112.34
5.4.190.0030.03912.33
5.4.180.0060.03712.33
5.4.170.0040.03912.34
5.4.160.0120.03912.34
5.4.150.0070.04612.34
5.4.140.0030.04112.02
5.4.130.0050.04012.01
5.4.120.0070.03711.96
5.4.110.0090.03311.96
5.4.100.0070.04611.96
5.4.90.0050.03711.96
5.4.80.0080.03411.96
5.4.70.0090.04611.96
5.4.60.0050.03611.96
5.4.50.0040.03911.96
5.4.40.0060.03611.95
5.4.30.0060.03611.94
5.4.20.0030.03811.94
5.4.10.0090.04011.95
5.4.00.0030.04111.44
5.3.290.0060.04312.80
5.3.280.0070.03812.71
5.3.270.0060.04012.73
5.3.260.0080.03712.72
5.3.250.0060.04012.72
5.3.240.0070.04612.72
5.3.230.0070.04712.71
5.3.220.0070.03912.68
5.3.210.0120.03612.68
5.3.200.0090.03412.68
5.3.190.0080.03512.68
5.3.180.0030.04212.67
5.3.170.0070.04012.67
5.3.160.0110.03212.68
5.3.150.0060.03712.67
5.3.140.0050.03812.66
5.3.130.0100.03512.66
5.3.120.0120.04912.66
5.3.110.0090.04412.66
5.3.100.0100.03612.12
5.3.90.0060.04212.09
5.3.80.0070.04012.07
5.3.70.0070.03712.07
5.3.60.0050.03912.06
5.3.50.0080.04312.00
5.3.40.0030.03812.00
5.3.30.0050.03611.95
5.3.20.0030.03711.74
5.3.10.0090.04011.70
5.3.00.0070.03411.69
5.2.170.0050.0319.19
5.2.160.0040.0309.19
5.2.150.0040.0349.20
5.2.140.0060.0299.19
5.2.130.0050.0339.15
5.2.120.0060.0319.15
5.2.110.0090.0309.15
5.2.100.0090.0329.15
5.2.90.0070.0269.15
5.2.80.0090.0319.15
5.2.70.0040.0309.14
5.2.60.0040.0379.10
5.2.50.0060.0309.07
5.2.40.0060.0279.05
5.2.30.0070.0339.03
5.2.20.0050.0329.02
5.2.10.0080.0318.94
5.2.00.0080.0368.80
5.1.60.0050.0258.08
5.1.50.0050.0268.08
5.1.40.0050.0258.05
5.1.30.0050.0278.41
5.1.20.0020.0308.43
5.1.10.0050.0288.15
5.1.00.0050.0258.15
5.0.50.0050.0246.63
5.0.40.0020.0216.50
5.0.30.0020.0336.30
5.0.20.0040.0206.27
5.0.10.0030.0216.25
5.0.00.0040.0356.25
4.4.90.0020.0204.78
4.4.80.0040.0164.75
4.4.70.0030.0164.76
4.4.60.0010.0184.75
4.4.50.0100.0224.77
4.4.40.0040.0274.71
4.4.30.0020.0174.76
4.4.20.0020.0164.85
4.4.10.0020.0204.85
4.4.00.0040.0344.75
4.3.110.0040.0194.67
4.3.100.0040.0154.66
4.3.90.0050.0144.63
4.3.80.0010.0284.59
4.3.70.0040.0144.63
4.3.60.0040.0144.62
4.3.50.0020.0164.63
4.3.40.0050.0234.54
4.3.30.0030.0163.30
4.3.20.0010.0183.27
4.3.10.0040.0173.23
4.3.00.0000.02013.59

preferences:
47.76 ms | 401 KiB | 5 Q