3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msg = 'Your phone number 040783248898 has been sent with a verification code.'; echo preg_replace('/\b\d{8}(?=\d{4}\b)/', '********', $msg);

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.20.0070.01021.88
8.5.10.0120.00516.66
8.5.00.0170.00520.00
8.4.170.0130.00723.77
8.4.160.0080.00523.59
8.4.150.0020.00114.05
8.4.140.0110.01117.44
8.4.130.0060.00518.57
8.4.120.0100.00923.99
8.4.110.0110.00822.74
8.4.100.0110.01018.54
8.4.90.0110.00819.12
8.4.80.0040.00420.34
8.4.70.0050.00320.79
8.4.60.0120.00818.54
8.4.50.0100.01120.25
8.4.40.0040.01217.68
8.4.30.0150.00418.70
8.4.20.0100.01019.71
8.4.10.0060.00319.63
8.3.300.0110.00920.66
8.3.290.0130.00718.36
8.3.280.0110.01018.52
8.3.270.0180.00916.45
8.3.260.0130.00716.80
8.3.250.0110.00718.73
8.3.240.0090.00716.98
8.3.230.0100.00916.75
8.3.220.0100.00518.72
8.3.210.0100.00618.69
8.3.200.0050.00416.65
8.3.190.0100.00817.00
8.3.180.0120.00618.66
8.3.170.0120.00320.59
8.3.160.0160.00317.20
8.3.150.0100.01017.00
8.3.140.0120.00317.05
8.3.130.0060.00318.37
8.3.120.0060.00320.58
8.3.110.0000.00820.94
8.3.100.0060.01024.06
8.3.90.0040.00426.77
8.3.80.0070.00318.43
8.3.70.0090.00616.75
8.3.60.0040.01118.43
8.3.50.0000.01516.48
8.3.40.0140.00719.95
8.3.30.0160.00318.95
8.3.20.0110.00721.78
8.3.10.0120.00621.83
8.3.00.0100.01018.91
8.2.300.0120.00718.71
8.2.290.0120.00620.52
8.2.280.0110.00718.74
8.2.270.0130.00619.08
8.2.260.0120.00618.48
8.2.250.0080.00017.44
8.2.240.0080.00018.93
8.2.230.0100.00622.58
8.2.220.0130.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00318.30
8.2.190.0140.00718.63
8.2.180.0090.00616.63
8.2.170.0030.01619.13
8.2.160.0150.00620.10
8.2.150.0030.01719.02
8.2.140.0100.01020.33
8.2.130.0170.00320.35
8.2.120.0120.00819.35
8.2.110.0090.00919.27
8.2.100.0170.00319.45
8.2.90.0100.01018.91
8.2.80.0140.00719.32
8.2.70.0180.00019.02
8.2.60.0120.00618.96
8.2.50.0100.01019.15
8.2.40.0100.01018.96
8.2.30.0090.01218.78
8.2.20.0100.01018.90
8.2.10.0160.00318.59
8.2.00.0160.00318.58
8.1.340.0100.01021.70
8.1.330.0130.00622.20
8.1.320.0110.00916.30
8.1.310.0110.00718.41
8.1.300.0160.00320.21
8.1.290.0080.00030.84
8.1.280.0070.01025.92
8.1.270.0150.00422.19
8.1.260.0100.01021.85
8.1.250.0160.00322.27
8.1.240.0160.00618.66
8.1.230.0160.00318.69
8.1.220.0150.00418.99
8.1.210.0100.01018.55
8.1.200.0150.00318.68
8.1.190.0130.00718.66
8.1.180.0130.00618.55
8.1.170.0040.01818.60
8.1.160.0100.01018.44
8.1.150.0100.01018.73
8.1.140.0070.00718.68
8.1.130.0130.00318.71
8.1.120.0120.00418.46
8.1.110.0130.00318.50
8.1.100.0110.00719.81
8.1.90.0110.00718.72
8.1.80.0090.00619.75
8.1.70.0040.01118.67
8.1.60.0120.00318.85
8.1.50.0120.00318.72
8.1.40.0110.00418.67
8.1.30.0170.00018.88
8.1.20.0120.00619.95
8.1.10.0080.00818.74
8.1.00.0110.00418.54

preferences:
30.1 ms | 403 KiB | 5 Q