3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "NPWP:016386112436000 JALAN ELANG DESA SUKAHATI CITEUREUP BOGOR 16810, INDONESIA TEL:+62(21)8765105", "NPWP 314633389431000 DELTA SILICON INDUSTRIALL PARK 3 JL PINANG F 16/25A, CICAU CIKARANG PUSAT, CITY: BEKASI, JB 17550 INDONESIA" ]; foreach ($strings as $string) { if(preg_match('/^NPWP:?\s*(\d+)/', $string, $matches)) { echo $matches[1] . PHP_EOL; } }

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.5.00.0160.00620.07
8.4.150.0030.00014.05
8.4.140.0120.01017.59
8.4.130.0120.00917.80
8.4.120.0140.00620.50
8.4.110.0100.01222.55
8.4.100.0130.00617.94
8.4.90.0070.00218.69
8.4.80.0090.00919.93
8.4.70.0020.00618.00
8.4.60.0030.00518.67
8.4.50.0130.00719.61
8.4.40.0070.00418.03
8.4.30.0030.00619.79
8.4.20.0130.00719.46
8.4.10.0070.00320.50
8.3.280.0120.00818.61
8.3.270.0110.00816.83
8.3.260.0090.00816.77
8.3.250.0040.00618.80
8.3.240.0090.01016.94
8.3.230.0130.00716.65
8.3.220.0080.00916.92
8.3.210.0100.00916.75
8.3.200.0060.00216.84
8.3.190.0070.00116.84
8.3.180.0070.00816.57
8.3.170.0070.01118.77
8.3.160.0100.00918.53
8.3.150.0120.00620.57
8.3.140.0040.00416.54
8.3.130.0030.00518.54
8.3.120.0090.00020.88
8.3.110.0070.01320.94
8.3.100.0030.00516.65
8.3.90.0150.00026.77
8.3.80.0060.00318.68
8.3.70.0040.01116.75
8.3.60.0100.01018.43
8.3.50.0070.00817.54
8.3.40.0040.01118.77
8.3.30.0120.00418.78
8.3.20.0030.00519.10
8.3.10.0030.00621.04
8.3.00.0000.00817.80
8.2.290.0070.00320.44
8.2.280.0120.00618.55
8.2.270.0090.00616.92
8.2.260.0090.00617.08
8.2.250.0080.00018.68
8.2.240.0060.00319.07
8.2.230.0000.00822.58
8.2.220.0040.01124.06
8.2.210.0000.00826.77
8.2.200.0080.00017.00
8.2.190.0100.01018.48
8.2.180.0150.00325.92
8.2.170.0140.00722.96
8.2.160.0130.00319.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00719.89
8.2.120.0000.00826.35
8.2.110.0060.00321.06
8.2.100.0120.00018.05
8.2.90.0080.00018.02
8.2.80.0040.00417.97
8.2.70.0050.00317.79
8.2.60.0030.00618.28
8.2.50.0000.00818.10
8.2.40.0040.00421.27
8.2.30.0040.00419.58
8.2.20.0050.00318.06
8.2.10.0000.00818.13
8.2.00.0000.00719.56
8.1.330.0150.00422.19
8.1.320.0100.00916.41
8.1.310.0080.01118.59
8.1.300.0080.00816.38
8.1.290.0040.00430.84
8.1.280.0110.00425.92
8.1.270.0030.00623.91
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0070.00421.36
8.1.230.0040.00720.88
8.1.220.0050.00317.76
8.1.210.0000.00818.91
8.1.200.0050.00517.35
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0000.00918.84
8.1.160.0040.00418.91
8.1.150.0000.00718.82
8.1.140.0000.00717.71
8.1.130.0030.00319.04
8.1.120.0000.00817.46
8.1.110.0040.00417.54
8.1.100.0000.00817.50
8.1.90.0040.00417.52
8.1.80.0000.00717.56
8.1.70.0000.00717.58
8.1.60.0030.00517.75
8.1.50.0000.00717.71
8.1.40.0060.00317.66
8.1.30.0030.00617.80
8.1.20.0050.00217.87
8.1.10.0000.00817.77
8.1.00.0040.00417.71
8.0.300.0050.00219.74
8.0.290.0050.00216.75
8.0.280.0030.00318.47
8.0.270.0000.00717.32
8.0.260.0040.00417.24
8.0.250.0000.00817.09
8.0.240.0070.00016.96
8.0.230.0030.00617.12
8.0.220.0070.00017.02
8.0.210.0060.00017.01
8.0.200.0050.00217.10
8.0.190.0070.00017.12
8.0.180.0000.00717.08
8.0.170.0040.00417.05
8.0.160.0000.00816.93
8.0.150.0000.00817.00
8.0.140.0000.00717.07
8.0.130.0030.00313.50
8.0.120.0040.00416.96
8.0.110.0040.00416.99
8.0.100.0000.00817.00
8.0.90.0030.00317.07
8.0.80.0090.00817.02
8.0.70.0040.00416.97
8.0.60.0070.00016.86
8.0.50.0000.00716.90
8.0.30.0070.01217.33
8.0.20.0130.00717.49
8.0.10.0040.00417.20
8.0.00.0120.00716.76
7.4.330.0050.00015.55
7.4.320.0040.00416.86
7.4.300.0030.00316.78
7.4.290.0040.00416.81
7.4.280.0000.00816.62
7.4.270.0000.00716.82
7.4.260.0000.00716.80
7.4.250.0030.00316.73
7.4.240.0030.00316.74
7.4.230.0030.00316.76
7.4.220.0000.00716.88
7.4.210.0060.00916.81
7.4.200.0030.00316.74
7.4.160.0080.00816.64
7.4.140.0070.01217.86
7.4.130.0090.00916.75
7.4.120.0150.00516.68
7.4.110.0130.01016.79
7.4.100.0090.00816.50
7.4.90.0100.00716.75
7.4.80.0130.00919.39
7.4.70.0120.00616.65
7.4.60.0080.00816.62
7.4.50.0060.00816.53
7.4.40.0070.01016.74
7.4.00.0070.01015.11
7.3.330.0000.00613.17
7.3.320.0060.00013.39
7.3.310.0000.00816.34
7.3.300.0030.00316.47
7.3.290.0070.00016.43
7.3.280.0000.01416.35
7.3.260.0110.00816.65
7.3.240.0100.00916.52
7.3.230.0110.00716.53
7.3.210.0110.00716.77
7.3.200.0080.00816.57
7.3.190.0060.01216.99
7.3.180.0060.01116.32
7.3.170.0090.01316.86
7.3.160.0030.01916.45
7.2.330.0070.01016.65
7.2.320.0140.00316.97
7.2.310.0040.01416.82
7.2.300.0090.00916.72
7.2.290.0130.00316.79
7.2.60.6260.01015.15
7.2.50.7060.01015.09
7.2.40.4160.01115.57
7.2.30.4060.01215.43
7.2.20.5000.00915.56
7.2.10.9060.01215.74
7.2.00.8210.01215.63
7.1.200.0060.00615.98
7.1.170.4970.01114.09
7.1.160.5140.01017.12
7.1.150.4580.01217.35
7.1.140.8190.01317.07
7.1.130.8230.01217.02
7.1.120.9090.01516.87
7.1.110.7950.01116.36
7.1.100.6180.01016.35
7.1.90.5540.01316.47
7.1.80.6030.01216.31
7.1.70.5060.01515.45
7.1.60.5040.01233.57
7.1.50.5670.01633.33
7.1.40.6150.01232.92
7.1.30.6800.01732.94
7.1.20.6340.01833.10
7.1.10.6520.01314.89
7.1.00.4750.01115.18

preferences:
147.31 ms | 403 KiB | 5 Q