3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Sisa pulsa Rp.8225.Aktif sd 18/01/2017."; $int = intval(preg_replace('/[^0-9]+/', '', $string), 10); echo $int;

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.0120.00316.75
8.3.50.0100.01018.06
8.3.40.0070.01018.84
8.3.30.0060.00818.97
8.3.20.0170.00018.95
8.3.10.0070.00021.85
8.3.00.0040.00421.69
8.2.180.0100.01316.50
8.2.170.0140.00022.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.58
8.2.120.0000.00826.35
8.2.110.0110.00019.31
8.2.100.0060.00917.97
8.2.90.0070.00020.47
8.2.80.0030.00618.96
8.2.70.0000.00817.93
8.2.60.0000.00918.22
8.2.50.0040.00418.10
8.2.40.0080.00019.18
8.2.30.0030.00521.01
8.2.20.0050.00317.97
8.2.10.0050.00218.13
8.2.00.0000.00917.86
8.1.280.0090.00925.92
8.1.270.0030.00523.91
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0000.00922.51
8.1.230.0040.00720.79
8.1.220.0050.00317.74
8.1.210.0050.00318.88
8.1.200.0000.00817.35
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0090.00018.61
8.1.160.0050.00222.06
8.1.150.0000.00718.75
8.1.140.0030.00519.52
8.1.130.0030.00317.69
8.1.120.0000.00717.55
8.1.110.0040.00417.42
8.1.100.0000.00717.49
8.1.90.0070.00017.43
8.1.80.0040.00417.52
8.1.70.0040.00417.55
8.1.60.0040.00417.71
8.1.50.0030.00617.58
8.1.40.0050.00217.55
8.1.30.0000.00817.64
8.1.20.0000.00717.71
8.1.10.0000.00817.64
8.1.00.0090.00017.60
8.0.300.0000.00720.03
8.0.290.0080.00017.00
8.0.280.0040.00418.49
8.0.270.0030.00317.26
8.0.260.0030.00317.25
8.0.250.0000.00716.98
8.0.240.0060.00017.14
8.0.230.0030.00317.09
8.0.220.0030.00516.96
8.0.210.0030.00316.93
8.0.200.0000.00717.04
8.0.190.0040.00417.02
8.0.180.0000.00716.98
8.0.170.0000.00716.87
8.0.160.0020.00516.97
8.0.150.0000.00816.79
8.0.140.0000.00716.94
8.0.130.0030.00313.36
8.0.120.0050.00216.83
8.0.110.0050.00317.01
8.0.100.0000.00716.83
8.0.90.0030.00616.92
8.0.80.0090.01216.97
8.0.70.0000.00716.95
8.0.60.0070.00017.01
8.0.50.0080.00016.80
8.0.30.0080.00917.25
8.0.20.0100.00817.43
8.0.10.0070.00017.03
8.0.00.0070.01016.84
7.4.330.0050.00015.55
7.4.320.0060.00016.78
7.4.300.0060.00016.64
7.4.290.0030.00316.77
7.4.280.0000.00716.61
7.4.270.0000.00716.73
7.4.260.0040.00416.73
7.4.250.0050.00216.62
7.4.240.0080.00016.69
7.4.230.0000.00716.71
7.4.220.0110.00716.41
7.4.210.0100.00716.63
7.4.200.0040.00416.78
7.4.160.0030.01316.48
7.4.150.0070.01417.40
7.4.140.0080.01117.86
7.4.130.0060.01216.53
7.4.120.0130.00516.58
7.4.110.0140.00316.69
7.4.100.0170.00016.67
7.4.90.0150.00416.82
7.4.80.0100.00619.39
7.4.70.0090.00616.49
7.4.60.0160.00616.48
7.4.50.0120.00316.49
7.4.40.0070.01016.65
7.4.30.0030.01416.61
7.4.00.0030.01015.01
7.3.330.0000.00613.14
7.3.320.0060.00013.02
7.3.310.0050.00216.36
7.3.300.0060.00016.32
7.3.290.0000.00716.26
7.3.280.0100.00916.36
7.3.270.0070.01017.40
7.3.260.0110.00716.43
7.3.250.0090.00816.32
7.3.240.0090.01116.61
7.3.230.0140.00716.39
7.3.210.0130.00316.37
7.3.200.0060.01016.58
7.3.190.0090.00616.56
7.3.180.0030.01416.62
7.3.170.0120.00816.63
7.3.160.0040.01216.33
7.3.10.0110.00616.51
7.3.00.0130.01016.43
7.2.330.0030.01516.66
7.2.320.0050.01516.68
7.2.310.0100.00716.77
7.2.300.0120.01016.85
7.2.290.0100.00616.62
7.2.130.0150.00916.55
7.2.120.0150.01316.76
7.2.110.0110.01116.81
7.2.100.0080.01716.74
7.2.90.0170.01216.77
7.2.80.0080.01216.74
7.2.70.0160.00816.93
7.2.60.0100.01216.95
7.2.50.0100.00916.86
7.2.40.0100.00716.82
7.2.30.0140.00816.65
7.2.20.0090.01216.60
7.2.10.0060.01216.69
7.2.00.0090.00817.67
7.1.250.0110.00915.93
7.1.200.0000.01515.74
7.1.100.0040.00418.30
7.1.70.0030.00517.27
7.1.60.0040.01117.29
7.1.00.0070.07322.38
7.0.200.0040.00715.01
7.0.120.0330.05720.16
7.0.110.0270.06020.23
7.0.100.0370.08020.32
7.0.90.0370.05020.21
7.0.80.0400.05020.27
7.0.70.0370.06720.16
7.0.60.0330.06320.28
7.0.50.0270.06020.30
7.0.40.0270.06020.24
7.0.30.0270.05720.24
7.0.20.0330.05320.33
7.0.10.0400.05720.30
7.0.00.0370.06320.14
5.6.270.0170.07020.95
5.6.260.0100.07020.82
5.6.250.0030.06320.89
5.6.240.0070.07720.88
5.6.230.0200.07720.99
5.6.220.0070.08321.07
5.6.210.0030.06320.94
5.6.200.0070.06320.74
5.6.190.0100.06321.00
5.6.180.0130.07320.91
5.6.170.0200.04721.07
5.6.160.0070.06321.07
5.6.150.0070.07021.04
5.6.140.0000.07020.98
5.6.130.0100.08020.98
5.6.120.0130.05720.78
5.6.110.0130.07320.92
5.6.100.0170.05720.81
5.6.90.0100.07020.96
5.6.80.0230.04320.21
5.6.70.0130.05320.20
5.6.60.0030.06320.42
5.6.50.0130.05320.29
5.6.40.0200.04720.39
5.6.30.0200.04720.28
5.6.20.0100.06720.18
5.6.10.0130.05320.42
5.6.00.0130.06720.40

preferences:
57.8 ms | 401 KiB | 5 Q