3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/.*\'(\d*)\'.*/'; $str = '404:Not Found(CLIENT_ERROR):Product with ref \'76767\' qsdqsd'; preg_match($re, $str, $matches, PREG_OFFSET_CAPTURE, 0); // Print the entire match result echo $matches[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.0100.01316.63
8.3.50.0150.00316.41
8.3.40.0060.00918.96
8.3.30.0040.01119.04
8.3.20.0000.00720.19
8.3.10.0040.00721.94
8.3.00.0080.00022.08
8.2.180.0110.01116.88
8.2.170.0120.00322.96
8.2.160.0120.00319.21
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00320.84
8.2.120.0040.00426.35
8.2.110.0030.00620.87
8.2.100.0060.00617.97
8.2.90.0040.00419.36
8.2.80.0030.00518.03
8.2.70.0030.00717.97
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0000.00920.60
8.2.30.0040.00421.12
8.2.20.0060.00418.13
8.2.10.0040.00417.95
8.2.00.0040.00418.07
8.1.280.0150.00425.92
8.1.270.0040.00422.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0040.00719.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0080.00017.48
8.1.180.0030.00518.10
8.1.170.0080.00018.71
8.1.160.0070.00018.94
8.1.150.0000.00718.86
8.1.140.0000.00719.43
8.1.130.0000.00718.82
8.1.120.0040.00417.58
8.1.110.0040.00417.47
8.1.100.0000.00717.56
8.1.90.0040.00417.50
8.1.80.0030.00517.55
8.1.70.0030.00317.57
8.1.60.0060.00317.63
8.1.50.0040.00417.61
8.1.40.0040.00417.48
8.1.30.0080.00017.71
8.1.20.0030.00517.75
8.1.10.0000.00817.74
8.1.00.0020.00517.68
8.0.300.0000.00718.77
8.0.290.0060.00316.88
8.0.280.0030.00318.38
8.0.270.0000.00717.27
8.0.260.0030.00316.98
8.0.250.0030.00317.14
8.0.240.0060.00317.13
8.0.230.0030.00317.10
8.0.220.0050.00216.98
8.0.210.0040.00417.01
8.0.200.0030.00317.13
8.0.190.0000.00817.13
8.0.180.0000.00716.94
8.0.170.0070.00017.09
8.0.160.0040.00317.04
8.0.150.0000.00816.99
8.0.140.0080.00016.99
8.0.130.0050.00013.36
8.0.120.0000.00716.88
8.0.110.0000.00717.09
8.0.100.0030.00516.99
8.0.90.0070.00016.93
8.0.80.0060.01217.01
8.0.70.0000.00716.92
8.0.60.0000.00817.09
8.0.50.0040.00416.95
8.0.30.0100.01017.56
8.0.20.0120.00817.40
8.0.10.0060.00317.18
8.0.00.0110.01017.10
7.4.330.0050.00015.55
7.4.320.0060.00016.77
7.4.300.0030.00316.64
7.4.290.0000.00816.79
7.4.280.0000.00916.78
7.4.270.0000.00616.55
7.4.260.0070.00016.72
7.4.250.0040.00416.72
7.4.240.0000.00716.67
7.4.230.0030.00316.77
7.4.220.0100.01016.79
7.4.210.0070.00716.61
7.4.200.0030.00316.50
7.4.160.0080.00816.75
7.4.150.0070.01117.40
7.4.140.0120.00617.86
7.4.130.0030.01416.89
7.4.120.0110.01216.70
7.4.110.0070.01016.59
7.4.100.0070.01116.52
7.4.90.0070.01516.44
7.4.80.0090.00819.39
7.4.70.0060.01416.71
7.4.60.0060.01116.49
7.4.50.0060.00916.50
7.4.40.0110.00616.53
7.4.30.0130.00316.53
7.4.10.0080.01115.22
7.4.00.0050.00815.08
7.3.330.0040.00413.32
7.3.320.0030.00313.14
7.3.310.0000.00716.55
7.3.300.0000.00716.46
7.3.290.0050.01116.42
7.3.280.0050.01316.38
7.3.270.0140.00317.40
7.3.260.0170.00216.62
7.3.250.0120.00716.69
7.3.240.0090.00916.51
7.3.230.0110.00616.59
7.3.210.0140.00316.53
7.3.200.0040.01416.63
7.3.190.0100.00716.50
7.3.180.0140.00716.51
7.3.170.0120.00916.46
7.3.160.0160.00616.68
7.3.130.0080.00815.19
7.3.120.0120.00614.75
7.3.110.0060.00914.72
7.3.100.0040.00814.62
7.3.90.0000.01014.94
7.3.80.0070.00714.88
7.3.70.0030.01015.01
7.3.60.0000.01315.09
7.3.50.0070.01315.16
7.3.40.0090.00314.88
7.3.30.0070.00715.07
7.3.20.0080.00616.74
7.3.10.0030.01016.60
7.3.00.0030.01016.54
7.2.330.0110.01116.62
7.2.320.0030.01316.58
7.2.310.0110.00616.53
7.2.300.0100.00716.66
7.2.290.0140.00316.78
7.2.260.0030.01515.19
7.2.250.0030.01615.11
7.2.240.0110.00415.38
7.2.230.0160.00015.04
7.2.220.0060.00915.11
7.2.210.0060.00915.11
7.2.200.0000.00915.30
7.2.190.0000.01514.74
7.2.180.0060.01315.19
7.2.170.0030.00914.98
7.2.160.0090.00315.21
7.2.150.0060.00617.13
7.2.140.0090.00317.13
7.2.130.0030.01317.03
7.2.120.0060.00617.09
7.2.110.0000.01416.84
7.2.100.0070.01016.86
7.2.90.0090.00616.71
7.2.80.0030.01017.16
7.2.70.0030.01316.96
7.2.60.0100.00517.17
7.2.50.0070.01017.13
7.2.40.0090.00017.05
7.2.30.0120.00616.83
7.2.20.0080.01217.11
7.2.10.0080.00817.21
7.2.00.0030.01018.34
7.1.330.0040.01116.09
7.1.320.0030.00615.82
7.1.310.0000.00916.03
7.1.300.0030.01315.96
7.1.290.0110.00415.92
7.1.280.0040.00815.74
7.1.270.0090.00616.05
7.1.260.0040.01115.99
7.1.250.0120.00315.86
7.1.240.0070.00715.73
7.1.230.0040.00716.05
7.1.220.0130.00315.84
7.1.210.0030.00615.86
7.1.200.0020.01015.84
7.1.190.0030.00615.93
7.1.180.0120.00315.89
7.1.170.0090.00615.79
7.1.160.0000.01315.92
7.1.150.0040.01216.07
7.1.140.0040.01116.06
7.1.130.0030.01415.97
7.1.120.0120.00416.10
7.1.110.0050.00515.73
7.1.100.0040.01117.04
7.1.90.0060.00616.01
7.1.80.0030.01016.09
7.1.70.0060.00716.74
7.1.60.0130.00925.47
7.1.50.0100.00925.66
7.1.40.0070.01425.36
7.1.30.0160.00325.30
7.1.20.0130.00725.40
7.1.10.0020.01316.32
7.1.00.0030.01116.54
7.0.330.0090.00615.50
7.0.320.0060.00915.50
7.0.310.0030.01015.55
7.0.300.0060.00915.61
7.0.290.0040.00415.30
7.0.280.0080.00415.23
7.0.270.0120.00415.34
7.0.260.0090.00315.57
7.0.250.0080.00515.59
7.0.240.0030.01215.52
7.0.230.0040.00415.53
7.0.220.0070.00715.73
7.0.210.0040.00815.72
7.0.200.0080.00716.12
7.0.190.0120.00216.19
7.0.180.0090.00616.04
7.0.170.0040.00915.95
7.0.160.0050.00916.19
7.0.150.0050.01016.01
7.0.140.0070.00715.94
7.0.130.0080.00616.19
7.0.120.0050.00816.11
7.0.110.0070.00716.03
7.0.100.0060.00816.07
7.0.90.0080.00615.91
7.0.80.0080.00715.93
7.0.70.0020.00815.93
7.0.60.0070.00615.88
7.0.50.0040.00916.02
7.0.40.0070.00415.25
7.0.30.0040.00715.04
7.0.20.0040.00815.22
7.0.10.0040.01115.02
7.0.00.0050.00715.04
5.6.400.0060.00914.20
5.6.390.0030.00914.68
5.6.380.0060.00914.54
5.6.370.0120.00014.33
5.6.360.0030.00614.16
5.6.350.0060.00914.45
5.6.340.0060.00914.14
5.6.330.0130.00314.19
5.6.320.0030.01014.31
5.6.310.0040.01114.30
5.6.300.0030.00714.64
5.6.290.0090.00614.55
5.6.280.0030.01314.44
5.6.270.0110.00414.16
5.6.260.0070.00714.43
5.6.250.0120.00314.52
5.6.240.0130.00314.39
5.6.230.0110.00414.41
5.6.220.0030.01014.36
5.6.210.0040.00814.33
5.6.200.0030.01214.09
5.6.190.0030.00614.22
5.6.180.0110.00414.26
5.6.170.0120.00414.38
5.6.160.0090.00614.36
5.6.150.0040.00814.46
5.6.140.0050.00514.26
5.6.130.0030.01314.11
5.6.120.0030.01414.47
5.6.110.0090.00614.38
5.6.100.0040.01214.21
5.6.90.0030.01014.41
5.6.80.0090.00714.13
5.6.70.0080.00014.04
5.6.60.0060.00614.42
5.6.50.0030.01014.16
5.6.40.0070.00714.21
5.6.30.0030.01014.31
5.6.20.0090.00013.98
5.6.10.0090.00314.21
5.6.00.0030.00714.23

preferences:
44.49 ms | 401 KiB | 5 Q