3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ($strings as $string) { if(preg_match('/^NPWP:?\s*(\d+)/', $string, $matches)) { 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.0180.00316.88
8.3.50.0180.00316.09
8.3.40.0070.00718.85
8.3.30.0090.01218.48
8.3.20.0100.00718.90
8.3.10.0100.00720.73
8.3.00.0000.00817.77
8.2.180.0060.01325.92
8.2.170.0070.01422.96
8.2.160.0090.00619.08
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00319.64
8.2.120.0080.00026.35
8.2.110.0070.00421.04
8.2.100.0060.00617.72
8.2.90.0030.00517.93
8.2.80.0040.00417.97
8.2.70.0000.00817.88
8.2.60.0080.00017.93
8.2.50.0080.00018.10
8.2.40.0040.00419.18
8.2.30.0050.00319.36
8.2.20.0040.00417.97
8.2.10.0050.00317.96
8.2.00.0040.00419.38
8.1.280.0080.00825.92
8.1.270.0080.00023.71
8.1.260.0070.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00322.11
8.1.230.0060.00620.95
8.1.220.0000.00817.74
8.1.210.0000.00818.97
8.1.200.0040.00417.10
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0000.00718.86
8.1.150.0040.00418.81
8.1.140.0040.00417.57
8.1.130.0000.00718.86
8.1.120.0000.00717.37
8.1.110.0090.00017.28
8.1.100.0000.00717.30
8.1.90.0000.00717.40
8.1.80.0030.00617.36
8.1.70.0060.00017.39
8.1.60.0040.00417.48
8.1.50.0030.00517.43
8.1.40.0000.01017.33
8.1.30.0000.00817.51
8.1.20.0000.00717.63
8.1.10.0040.00417.35
8.1.00.0000.00817.33
8.0.300.0000.00719.79
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0030.00317.18
8.0.260.0050.00317.20
8.0.250.0030.00316.95
8.0.240.0070.00016.88
8.0.230.0030.00316.82
8.0.220.0030.00316.86
8.0.210.0000.00716.87
8.0.200.0000.00716.89
8.0.190.0040.00416.93
8.0.180.0040.00416.91
8.0.170.0050.00316.82
8.0.160.0040.00416.87
8.0.150.0080.00016.91
8.0.140.0050.00216.86
8.0.130.0000.00513.27
8.0.120.0050.00316.88
8.0.110.0000.00816.70
8.0.100.0070.00016.93
8.0.90.0030.00617.00
8.0.80.0090.01116.91
8.0.70.0040.00416.92
8.0.60.0040.00417.00
8.0.50.0020.00516.88
8.0.30.0120.00517.06
8.0.20.0150.00517.40
8.0.10.0070.00017.07
8.0.00.0120.00816.72
7.4.330.0000.00415.55
7.4.320.0040.00416.57
7.4.300.0070.00016.34
7.4.290.0030.00316.44
7.4.280.0080.00016.44
7.4.270.0050.00316.29
7.4.260.0050.00316.50
7.4.250.0070.00016.48
7.4.240.0000.00716.51
7.4.230.0030.00316.33
7.4.220.0050.00316.41
7.4.210.0090.00716.44
7.4.200.0040.00416.27
7.4.160.0080.00816.59
7.4.140.0090.01017.86
7.4.130.0120.00716.36
7.4.120.0080.00916.43
7.4.110.0130.00316.27
7.4.100.0000.01716.36
7.4.90.0100.00716.62
7.4.80.0090.00919.39
7.4.70.0060.01616.32
7.4.60.0030.01216.33
7.4.50.0080.00416.36
7.4.40.0130.01016.34
7.4.00.0070.00715.19
7.3.330.0000.00513.09
7.3.320.0030.00313.02
7.3.310.0070.00016.30
7.3.300.0000.00616.04
7.3.290.0000.00716.29
7.3.280.0030.01016.24
7.3.260.0130.00516.23
7.3.240.0090.00816.33
7.3.230.0130.01016.34
7.3.210.0090.00916.31
7.3.200.0030.01316.42
7.3.190.0080.00816.43
7.3.180.0060.00916.52
7.3.170.0100.00616.33
7.3.160.0110.00616.53
7.2.330.0100.00716.46
7.2.320.0070.01516.66
7.2.310.0100.00716.34
7.2.300.0030.01516.26
7.2.290.0080.00816.61
7.2.60.4630.01115.07
7.2.50.4850.00714.99
7.2.40.3900.00915.21
7.2.30.4710.01115.36
7.2.20.4010.01115.08
7.2.10.3600.00915.28
7.2.00.3490.00715.50
7.1.200.0000.00915.51
7.1.170.4610.01013.44
7.1.160.3710.01316.61
7.1.150.4540.01816.77
7.1.140.4020.00916.63
7.1.130.3660.01216.79
7.1.120.3170.01416.67
7.1.110.2710.00816.29
7.1.100.3800.00716.06
7.1.90.7210.00816.20
7.1.80.5660.01016.25
7.1.70.4960.01214.92
7.1.60.4870.01633.11
7.1.50.5350.01332.58
7.1.40.6710.01532.51
7.1.30.5810.01432.42
7.1.20.4980.02232.69
7.1.10.3850.01314.64
7.1.00.5260.01114.65

preferences:
63.41 ms | 400 KiB | 5 Q