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 var_dump($matches);

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.70.0090.00918.43
8.3.60.0140.00716.75
8.3.50.0130.00516.67
8.3.40.0100.00718.78
8.3.30.0070.00718.69
8.3.20.0030.00620.52
8.3.10.0030.00623.48
8.3.00.0080.00021.91
8.2.180.0160.00616.63
8.2.170.0120.00322.96
8.2.160.0150.00019.12
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.07
8.2.120.0080.00026.35
8.2.110.0000.00922.37
8.2.100.0040.00717.97
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0060.00317.90
8.2.50.0050.00318.10
8.2.40.0040.00420.59
8.2.30.0070.00019.08
8.2.20.0070.00317.89
8.2.10.0030.00517.93
8.2.00.0050.00318.00
8.1.280.0140.00425.92
8.1.270.0050.00322.05
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.23
8.1.230.0060.00623.94
8.1.220.0070.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.47
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0000.00818.72
8.1.160.0030.00518.98
8.1.150.0040.00418.84
8.1.140.0000.00819.43
8.1.130.0000.00718.71
8.1.120.0040.00417.45
8.1.110.0040.00417.50
8.1.100.0000.00717.47
8.1.90.0000.00717.57
8.1.80.0050.00217.43
8.1.70.0000.00717.54
8.1.60.0030.00617.67
8.1.50.0040.00417.49
8.1.40.0000.00817.45
8.1.30.0000.00817.71
8.1.20.0030.00617.71
8.1.10.0030.00617.67
8.1.00.0020.00517.60
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0030.00318.38
8.0.270.0040.00417.12
8.0.260.0000.00716.89
8.0.250.0030.00417.00
8.0.240.0060.00317.05
8.0.230.0000.00717.01
8.0.220.0030.00316.86
8.0.210.0000.00716.99
8.0.200.0030.00316.89
8.0.190.0050.00316.92
8.0.180.0000.00716.96
8.0.170.0040.00416.98
8.0.160.0030.00316.90
8.0.150.0050.00316.82
8.0.140.0030.00316.85
8.0.130.0060.00013.46
8.0.120.0040.00416.93
8.0.110.0000.00716.98
8.0.100.0070.00016.96
8.0.90.0070.00016.92
8.0.80.0100.01016.85
8.0.70.0040.00416.76
8.0.60.0040.00416.99
8.0.50.0080.00016.82
8.0.30.0090.01117.16
8.0.20.0080.01117.40
8.0.10.0030.00617.00
8.0.00.0120.00816.96
7.4.330.0000.00515.55
7.4.320.0030.00316.62
7.4.300.0030.00316.53
7.4.290.0030.00316.59
7.4.280.0000.00816.65
7.4.270.0030.00316.62
7.4.260.0030.00316.72
7.4.250.0000.00716.68
7.4.240.0050.00216.73
7.4.230.0070.00016.83
7.4.220.0030.02116.77
7.4.210.0100.00316.68
7.4.200.0060.00316.83
7.4.160.0090.00816.50
7.4.150.0150.00317.40
7.4.140.0100.00717.86
7.4.130.0060.01316.57
7.4.120.0120.01016.55
7.4.110.0090.00916.65
7.4.100.0030.01916.62
7.4.90.0200.00316.39
7.4.80.0120.00319.39
7.4.70.0150.00316.50
7.4.60.0100.00616.47
7.4.50.0040.01116.56
7.4.40.0100.00616.58
7.4.30.0070.01016.58
7.4.00.0020.01414.80
7.3.330.0030.00313.03
7.3.320.0000.00513.03
7.3.310.0030.00316.40
7.3.300.0070.00016.30
7.3.290.0100.00616.33
7.3.280.0090.00816.28
7.3.270.0140.00317.40
7.3.260.0160.00116.40
7.3.250.0110.00816.44
7.3.240.0110.01016.52
7.3.230.0120.00616.46
7.3.210.0090.00816.38
7.3.200.0110.00616.19
7.3.190.0080.01116.34
7.3.180.0040.01816.34
7.3.170.0090.00916.76
7.3.160.0130.00316.73
7.3.120.0070.01314.76
7.3.110.0120.00614.93
7.3.100.0000.01215.02
7.3.90.0070.01014.86
7.3.80.0030.01015.03
7.3.70.0040.00814.95
7.3.60.0090.00314.82
7.3.50.0000.00814.63
7.3.40.0000.01614.55
7.3.30.0040.00814.82
7.3.20.0070.01116.70
7.3.10.0040.01116.67
7.3.00.0030.00916.50
7.2.330.0160.00616.52
7.2.320.0150.00316.72
7.2.310.0130.01016.48
7.2.300.0070.01016.73
7.2.290.0060.01016.68
7.2.250.0030.01515.02
7.2.240.0070.01115.06
7.2.230.0060.01214.91
7.2.220.0040.01514.65
7.2.210.0060.00614.81
7.2.200.0040.01115.12
7.2.190.0030.00615.16
7.2.180.0070.00715.16
7.2.170.0000.01714.95
7.2.60.0100.00317.03
7.2.00.0000.01119.39
7.1.330.0110.00415.68
7.1.320.0100.00615.96
7.1.310.0090.00315.89
7.1.300.0090.00415.93
7.1.290.0080.00615.87
7.1.280.0070.00315.79
7.1.270.0070.00715.55
7.1.260.0070.00715.86
7.1.200.0110.01215.59
7.1.100.0000.01418.50
7.1.70.0060.00617.26
7.1.60.0190.01034.93
7.1.50.0160.01334.84
7.1.40.0270.00334.57
7.1.30.0200.01034.65
7.1.20.0170.01334.80
7.1.10.0080.01516.66
7.1.00.0030.01217.03
7.0.200.0090.00616.90
7.0.190.0090.00616.97
7.0.180.0030.01016.27
7.0.170.0000.01316.29
7.0.160.0090.00316.39
7.0.150.0150.00616.51
7.0.140.0030.01016.71
7.0.130.0100.00516.65
7.0.120.0070.00716.37
7.0.110.0100.00316.41
7.0.100.0030.00916.45
7.0.90.0050.00916.60
7.0.80.0120.00516.60
7.0.70.0050.01016.41
7.0.60.0030.01416.45
7.0.50.0000.01416.38
7.0.40.0040.01216.84
7.0.30.0070.00716.56
7.0.20.0190.00614.64
7.0.10.0120.01614.63
7.0.00.0130.01716.45

preferences:
42.48 ms | 401 KiB | 5 Q