3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = '512345678'; $failingPattern = '/^([3-5789]\d{8})$/x'; $result = preg_match($failingPattern , $subject, $groups, PREG_OFFSET_CAPTURE); var_dump($result, $groups);

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.0110.00416.38
8.3.50.0080.01122.11
8.3.40.0070.01118.80
8.3.30.0110.00718.70
8.3.20.0040.00420.34
8.3.10.0070.00023.53
8.3.00.0000.00819.50
8.2.180.0150.00318.66
8.2.170.0170.00022.96
8.2.160.0070.00720.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00817.50
8.2.120.0050.00326.35
8.2.110.0040.00721.30
8.2.100.0120.00017.91
8.2.90.0030.00518.09
8.2.80.0040.00418.06
8.2.70.0040.00417.93
8.2.60.0070.00417.92
8.2.50.0040.00418.10
8.2.40.0000.00820.42
8.2.30.0030.00520.62
8.2.20.0000.00817.67
8.2.10.0000.00817.98
8.2.00.0030.00518.02
8.1.280.0160.00625.92
8.1.270.0060.00323.93
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00624.02
8.1.230.0040.00820.96
8.1.220.0050.00317.76
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0000.00917.25
8.1.180.0040.00418.10
8.1.170.0000.00818.41
8.1.160.0040.00422.05
8.1.150.0000.00718.87
8.1.140.0040.00419.48
8.1.130.0070.00017.70
8.1.120.0040.00317.54
8.1.110.0060.00317.51
8.1.100.0070.00017.57
8.1.90.0040.00317.43
8.1.80.0020.00517.50
8.1.70.0030.00617.49
8.1.60.0050.00517.69
8.1.50.0000.00817.52
8.1.40.0030.00517.61
8.1.30.0080.00017.70
8.1.20.0060.00317.63
8.1.10.0050.00217.63
8.1.00.0080.00017.46
8.0.300.0050.00319.86
8.0.290.0070.00016.75
8.0.280.0030.00318.40
8.0.270.0000.00717.11
8.0.260.0070.00017.20
8.0.250.0030.00316.91
8.0.240.0040.00416.90
8.0.230.0000.00717.01
8.0.220.0000.00716.98
8.0.210.0070.00016.98
8.0.200.0030.00316.91
8.0.190.0040.00417.06
8.0.180.0040.00416.84
8.0.170.0030.00617.00
8.0.160.0000.00817.02
8.0.150.0070.00016.87
8.0.140.0050.00316.96
8.0.130.0000.00513.39
8.0.120.0060.00316.84
8.0.110.0070.00017.02
8.0.100.0050.00316.96
8.0.90.0020.00516.83
8.0.80.0060.00916.94
8.0.70.0050.00316.91
8.0.60.0000.00816.78
8.0.50.0040.00416.95
8.0.30.0110.00517.04
8.0.20.0130.00817.40
8.0.10.0000.00716.97
8.0.00.0120.00916.81
7.4.330.0020.00216.71
7.4.320.0000.00616.67
7.4.300.0030.00316.70
7.4.290.0030.00316.66
7.4.280.0000.00816.72
7.4.270.0070.00016.59
7.4.260.0050.00316.66
7.4.250.0040.00416.55
7.4.240.0000.00716.65
7.4.230.0000.00716.67
7.4.220.0120.00916.64
7.4.210.0040.01016.74
7.4.200.0030.00316.53
7.4.160.0050.01016.65
7.4.150.0120.00617.40
7.4.140.0090.01017.86
7.4.130.0130.00816.63
7.4.120.0110.00616.61
7.4.110.0090.00916.55
7.4.100.0090.00916.59
7.4.90.0080.00816.69
7.4.80.0110.00619.39
7.4.70.0120.00616.96
7.4.60.0170.00016.68
7.4.50.0130.00316.53
7.4.40.0090.01216.48
7.4.30.0060.01716.66
7.4.00.0040.00814.74
7.3.330.0000.00513.18
7.3.320.0050.00013.14
7.3.310.0040.00416.23
7.3.300.0070.00016.26
7.3.290.0120.00616.25
7.3.280.0090.01016.27
7.3.270.0070.01017.40
7.3.260.0140.00316.40
7.3.250.0120.00516.55
7.3.240.0110.00816.25
7.3.230.0120.00416.39
7.3.210.0110.00716.48
7.3.200.0070.01016.33
7.3.190.0060.01216.54
7.3.180.0030.01416.68
7.3.170.0060.01016.68
7.3.160.0040.01216.22
7.2.330.0080.00816.75
7.2.320.0080.01116.58
7.2.310.0070.01016.85
7.2.300.0030.01416.50
7.2.290.0130.00416.60
7.2.60.0070.00716.78
7.2.00.0030.00919.07
7.1.200.0000.00615.62
7.1.100.0090.00618.53
7.1.70.0000.00717.46
7.1.60.0110.01419.48
7.1.50.0060.00917.05
7.1.00.0070.07322.45
7.0.200.0000.00916.75
7.0.60.0030.06720.01
7.0.50.0070.08317.82
7.0.40.0030.04319.98
7.0.30.0230.06320.18
7.0.20.0300.07320.18
7.0.10.0000.05020.40
7.0.00.0070.04020.18
5.6.280.0070.05720.77
5.6.210.0130.07720.49
5.6.200.0070.06718.21
5.6.190.0030.09720.43
5.6.180.0270.04320.60
5.6.170.0230.06020.39
5.6.160.0030.08320.71
5.6.150.0030.04018.18
5.6.140.0030.05718.17
5.6.130.0030.08718.21
5.6.120.0100.04720.98
5.6.110.0130.08020.85
5.6.100.0000.05320.99
5.6.90.0070.04720.96
5.6.80.0030.06020.34
5.5.350.3730.04020.38
5.5.340.0130.07318.01
5.5.330.0170.03020.43
5.5.320.0030.06020.18
5.5.310.0470.04020.41
5.5.300.0100.07717.98
5.5.290.0070.03717.88
5.5.280.0130.05720.82
5.5.270.0030.04320.86
5.5.260.0130.07720.64
5.5.250.0070.05720.69
5.5.240.0370.06720.25

preferences:
68.93 ms | 401 KiB | 5 Q