3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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_all( '/Assert\\\(?P<nombre>\w+)\((.+)\)\s*/m', $comentario, $assert ); //preg_match_all( '/Assert\\\(?P<nombre>\w+)\s*/m', $comentario, $assert ); //var_dump($assert); $cadena = 'foobar: 2008'; preg_match_all('/(?P<nombre>\w+): (?P<digito>\d+)/', $cadena, $coincidencias); var_dump($coincidencias);

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.0030.01218.30
8.3.50.0170.00721.15
8.3.40.0150.00018.54
8.3.30.0120.00318.83
8.3.20.0070.00020.05
8.3.10.0040.00420.50
8.3.00.0040.00419.51
8.2.180.0120.00316.60
8.2.170.0150.00322.96
8.2.160.0170.00320.53
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00722.18
8.2.110.0060.00320.49
8.2.100.0070.00317.91
8.2.90.0030.00619.21
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0000.00917.93
8.2.50.0040.00818.07
8.2.40.0000.00818.22
8.2.30.0000.00918.04
8.2.20.0040.00417.79
8.2.10.0050.00317.94
8.2.00.0070.00017.69
8.1.280.0140.00425.92
8.1.270.0090.00023.80
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0100.00023.84
8.1.230.0050.00519.08
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0080.00018.42
8.1.160.0040.00422.00
8.1.150.0070.00018.79
8.1.140.0000.00817.51
8.1.130.0000.00717.86
8.1.120.0080.00017.55
8.1.110.0000.00717.50
8.1.100.0000.00717.56
8.1.90.0030.00317.44
8.1.80.0070.00017.57
8.1.70.0000.00717.45
8.1.60.0050.00317.71
8.1.50.0030.00617.61
8.1.40.0030.00517.50
8.1.30.0030.00617.73
8.1.20.0050.00217.81
8.1.10.0000.00717.70
8.1.00.0040.00417.63
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.34
8.0.270.0000.00717.12
8.0.260.0030.00317.23
8.0.250.0040.00417.00
8.0.240.0030.00317.07
8.0.230.0040.00417.06
8.0.220.0030.00317.04
8.0.210.0030.00316.96
8.0.200.0000.00617.02
8.0.190.0040.00417.05
8.0.180.0050.00317.03
8.0.170.0060.00317.08
8.0.160.0030.00416.97
8.0.150.0000.00716.96
8.0.140.0090.00016.89
8.0.130.0000.00613.35
8.0.120.0080.00017.01
8.0.110.0050.00216.87
8.0.100.0060.00317.05
8.0.90.0070.00016.98
8.0.80.0070.01116.92
8.0.70.0000.00716.97
8.0.60.0070.00017.07
8.0.50.0040.00417.09
8.0.30.0150.00617.11
8.0.20.0110.00817.40
8.0.10.0040.00417.16
8.0.00.0130.00516.90
7.4.330.0000.00515.11
7.4.320.0040.00416.77
7.4.300.0100.00016.60
7.4.290.0000.00716.62
7.4.280.0030.00516.57
7.4.270.0040.00416.59
7.4.260.0040.00416.72
7.4.250.0070.00016.61
7.4.240.0020.00516.60
7.4.230.0040.00216.60
7.4.220.0090.00916.63
7.4.210.0110.00916.83
7.4.200.0040.00416.77
7.4.160.0040.01216.54
7.4.150.0130.01317.40
7.4.140.0150.00417.86
7.4.130.0100.00816.61
7.4.120.0110.00716.67
7.4.110.0060.01316.43
7.4.100.0120.00916.75
7.4.90.0090.00916.62
7.4.80.0140.01319.39
7.4.70.0090.00816.60
7.4.60.0100.01016.56
7.4.50.0000.00816.36
7.4.40.0090.00616.70
7.4.30.0100.00716.75
7.4.00.0090.00615.39
7.3.330.0020.00413.00
7.3.320.0050.00013.02
7.3.310.0030.00316.14
7.3.300.0030.00316.28
7.3.290.0070.00716.29
7.3.280.0080.01016.29
7.3.270.0140.00617.40
7.3.260.0040.01516.56
7.3.250.0050.01216.52
7.3.240.0070.01116.59
7.3.230.0030.01316.39
7.3.210.0060.01616.30
7.3.200.0060.01319.39
7.3.190.0040.01216.58
7.3.180.0000.01516.40
7.3.170.0140.00816.52
7.3.160.0110.00616.33
7.3.00.0040.00716.64
7.2.330.0060.01216.62
7.2.320.0120.00616.59
7.2.310.0130.00316.38
7.2.300.0100.00716.57
7.2.290.0110.01416.58
7.2.130.0090.00616.88
7.2.120.0070.00716.92
7.2.110.0030.01317.01
7.2.100.0000.01516.95
7.2.90.0090.00616.93
7.2.80.0030.01216.96
7.2.70.0090.00616.65
7.2.60.0090.00516.82
7.2.50.0040.01116.67
7.2.40.0090.00017.13
7.2.30.0000.01417.07
7.2.20.0000.01617.05
7.2.10.0120.00016.97
7.2.00.0030.01216.91
7.1.250.0030.01015.93
7.1.240.0060.00616.04
7.1.230.0000.01315.73
7.1.220.0060.00815.63
7.1.210.0030.00615.98
7.1.200.0050.00615.93
7.1.190.0030.00715.88
7.1.180.0070.00715.66
7.1.170.0070.00415.80
7.1.160.0040.01115.86
7.1.150.0110.00415.52
7.1.140.0040.01115.99
7.1.130.0090.00615.84
7.1.120.0040.00815.91
7.1.110.0080.00816.03
7.1.100.0070.00716.08
7.1.90.0130.00315.75
7.1.80.0060.00616.01
7.1.70.0020.01116.52
7.1.60.0050.01417.66
7.1.50.0060.01116.41
7.1.40.0030.01015.93
7.1.30.0080.00415.87
7.1.20.0030.00915.75
7.1.10.0030.00915.96
7.1.00.0050.04119.19
7.0.330.0060.00615.34
7.0.320.0120.00315.20
7.0.310.0060.00615.07
7.0.300.0070.00315.42
7.0.290.0060.00615.52
7.0.280.0030.01015.15
7.0.270.0100.00015.41
7.0.260.0070.00715.34
7.0.250.0040.00815.33
7.0.240.0060.00315.41
7.0.230.0060.00615.58
7.0.220.0000.00915.12
7.0.210.0030.00715.39
7.0.200.0070.00216.26
7.0.190.0040.01115.45
7.0.180.0090.00015.21
7.0.170.0030.01015.48
7.0.160.0100.00315.29
7.0.150.0060.00615.23
7.0.140.0050.04018.70
7.0.130.0000.00915.43
7.0.120.0030.00715.46
7.0.110.0070.00715.54
7.0.100.0040.00815.51
7.0.90.0100.00015.54
7.0.80.0030.00615.40
7.0.70.0060.00615.32
7.0.60.0070.02217.72
7.0.50.0050.02316.56
7.0.40.0020.05216.76
7.0.30.0160.03316.80
7.0.20.0160.04016.73
7.0.10.0050.02916.73
7.0.00.0050.05116.81
5.6.380.0030.01014.23
5.6.370.0000.01214.21
5.6.360.0100.00314.27
5.6.350.0070.00314.34
5.6.340.0090.00314.42
5.6.330.0130.00313.78
5.6.320.0040.00814.25
5.6.310.0030.01213.97
5.6.300.0000.01514.31
5.6.290.0090.00313.92
5.6.280.0050.03917.57
5.6.270.0030.01314.12
5.6.260.0040.01114.36
5.6.250.0100.00713.83
5.6.240.0070.00713.88
5.6.230.0100.00714.26
5.6.220.0030.01014.07
5.6.210.0100.02817.53
5.6.200.0050.02716.31
5.6.190.0070.04617.36
5.6.180.1560.02117.44
5.6.170.0130.04217.38
5.6.160.0050.04717.31
5.6.150.0030.02416.17
5.6.140.0090.03516.21
5.6.130.0080.03516.19
5.6.120.0050.03717.65
5.6.110.0070.02317.80
5.6.100.0080.04417.56
5.6.90.0100.03017.56
5.6.80.0060.02517.22
5.6.70.0060.00613.98
5.6.60.0040.01114.18
5.6.50.0090.00614.11
5.6.40.0030.01014.07
5.6.30.0030.01013.84
5.6.20.0030.00713.94
5.6.10.0080.00414.13
5.6.00.0090.00614.16
5.5.380.0070.00410.77
5.5.370.0070.00310.61
5.5.360.0000.00910.54
5.5.350.0030.04515.55
5.5.340.0050.04114.29
5.5.330.0100.03515.56
5.5.320.0040.04715.43
5.5.310.0180.03715.65
5.5.300.0040.04314.39
5.5.290.0050.04214.38
5.5.280.0020.03415.78
5.5.270.0090.02215.70
5.5.260.0050.03515.81
5.5.250.0030.02315.71
5.5.240.0020.04215.58
5.5.230.0030.00711.04
5.5.220.0040.00410.88
5.5.210.0040.00710.93
5.5.200.0030.00310.84
5.5.190.0090.00311.00
5.5.180.0040.00410.79
5.5.170.0100.00010.75
5.5.160.0000.01110.84
5.5.150.0060.00610.88
5.5.140.0030.00710.73
5.5.130.0000.01010.91
5.5.120.0000.00610.75
5.5.110.0030.00910.61
5.5.100.0070.00010.73
5.5.90.0000.00910.43
5.5.80.0080.00010.70
5.5.70.0060.00310.77
5.5.60.0040.00410.68
5.5.50.0030.00710.89
5.5.40.0000.01210.94
5.5.30.0060.00610.76
5.5.20.0060.00610.88
5.5.10.0030.00510.91
5.5.00.0000.00710.54
5.4.450.0200.02714.99
5.4.440.0270.02215.11
5.4.430.0180.02015.09
5.4.420.0350.00215.22
5.4.410.0350.00315.05
5.4.400.0340.00415.05
5.4.390.0320.00314.91
5.4.380.0370.00315.09
5.4.370.0320.00215.02
5.4.360.0430.00315.02
5.4.350.0380.00314.79
5.4.340.0330.00414.84
5.4.330.0040.00810.89
5.4.320.0070.01811.72
5.4.310.0040.02211.68
5.4.300.0060.02011.65
5.4.290.0050.02211.62
5.4.280.0060.02011.51
5.4.270.0010.02411.55
5.4.260.0040.02211.60
5.4.250.0070.02011.57
5.4.240.0070.02211.44
5.4.230.0060.02511.66
5.4.220.0060.02411.66
5.4.210.0060.02211.55
5.4.200.0060.02011.47
5.4.190.0050.01811.57
5.4.180.0020.02611.59
5.4.170.0040.02311.61
5.4.160.0050.02211.45
5.4.150.0060.01811.58
5.4.140.0060.02311.37
5.4.130.0060.01911.30
5.4.120.0030.02211.45
5.4.110.0060.02011.36
5.4.100.0040.02111.47
5.4.90.0030.02111.46
5.4.80.0050.02611.44
5.4.70.0050.02111.45
5.4.60.0050.01911.36
5.4.50.0060.01911.36
5.4.40.0060.02111.35
5.4.30.0040.02311.39
5.4.20.0040.02311.38
5.4.10.0070.01611.39
5.4.00.0060.02011.07
5.3.290.0050.02111.66
5.3.280.0020.02511.52
5.3.270.0040.02311.57
5.3.260.0060.02211.62
5.3.250.0030.02211.59
5.3.240.0040.02111.49
5.3.230.0080.02111.53
5.3.220.0050.02211.52
5.3.210.0080.02011.48
5.3.200.0050.02611.54
5.3.190.0050.02211.46
5.3.180.0050.01911.57
5.3.170.0050.02111.60
5.3.160.0050.02011.46
5.3.150.0060.02111.52
5.3.140.0040.02111.56
5.3.130.0070.02111.59
5.3.120.0050.02111.48
5.3.110.0060.02311.60
5.3.100.0040.02211.25
5.3.90.0050.01911.27
5.3.80.0060.02111.17
5.3.70.0030.02511.16
5.3.60.0040.02311.24
5.3.50.0060.01911.13
5.3.40.0050.02011.13
5.3.30.0030.02111.11
5.3.20.0060.02310.99
5.3.10.0020.02310.98
5.3.00.0040.02010.97
5.2.170.0040.0219.72
5.2.160.0060.0159.72
5.2.150.0050.0179.73
5.2.140.0010.0199.72
5.2.130.0060.0149.70
5.2.120.0020.0169.70
5.2.110.0050.0169.70
5.2.100.0070.0149.70
5.2.90.0020.0199.70
5.2.80.0020.0229.70
5.2.70.0030.0209.70
5.2.60.0040.0179.68
5.2.50.0050.0189.66
5.2.40.0060.0149.65
5.2.30.0020.0199.64
5.2.20.0030.0209.64
5.2.10.0020.0209.59
5.2.00.0040.0169.52
5.1.60.0020.0169.16
5.1.50.0040.0139.16
5.1.40.0010.0159.15
5.1.30.0070.0129.33
5.1.20.0010.0179.34
5.1.10.0050.0139.20
5.1.00.0040.0169.20
5.0.50.0010.0138.44
5.0.40.0040.0108.37
5.0.30.0030.0178.28
5.0.20.0030.0128.26
5.0.10.0040.0118.25
5.0.00.0020.0188.25
4.4.90.0040.0087.52
4.4.80.0020.0097.50
4.4.70.0050.0077.50
4.4.60.0030.0097.50
4.4.50.0020.0117.51
4.4.40.0040.0127.48
4.4.30.0020.0107.51
4.4.20.0030.0097.55
4.4.10.0020.0107.55
4.4.00.0050.0157.51
4.3.110.0030.0097.46
4.3.100.0030.0097.46
4.3.90.0010.0117.45
4.3.80.0040.0147.42
4.3.70.0010.0127.44
4.3.60.0040.0087.44
4.3.50.0020.0117.44
4.3.40.0040.0117.40
4.3.30.0020.0106.77
4.3.20.0040.0096.76
4.3.10.0010.0106.74
4.3.00.0080.01011.92

preferences:
52.66 ms | 400 KiB | 5 Q