3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "In My Cart : 11 items"; var_export(preg_replace('/\D+/', '', $string));

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.10.0140.00716.70
8.5.00.0120.01019.79
8.4.160.0110.01122.00
8.4.150.0010.00114.05
8.4.140.0150.00617.81
8.4.130.0110.00917.74
8.4.120.0110.00923.96
8.4.110.0050.00422.37
8.4.100.0110.01120.61
8.4.90.0130.00818.53
8.4.80.0050.00417.97
8.4.70.0050.00318.02
8.4.60.0160.00518.84
8.4.50.0110.01119.64
8.4.40.0070.01317.45
8.4.30.0050.00318.88
8.4.20.0030.00518.33
8.4.10.0170.00319.45
8.3.280.0140.00718.63
8.3.270.0070.01416.79
8.3.260.0150.00416.54
8.3.250.0040.00318.84
8.3.240.0130.00717.11
8.3.230.0110.00916.71
8.3.220.0060.00217.09
8.3.210.0130.00716.71
8.3.200.0060.00316.36
8.3.190.0100.00916.55
8.3.180.0130.00618.77
8.3.170.0150.00418.69
8.3.160.0040.00418.40
8.3.150.0090.00920.58
8.3.140.0060.00316.57
8.3.130.0080.00018.33
8.3.120.0060.01218.73
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0070.00726.77
8.3.80.0080.00018.29
8.3.70.0110.00418.30
8.3.60.0040.01118.25
8.3.50.0040.01116.47
8.3.40.0030.01021.90
8.3.30.0070.00719.14
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.290.0120.00720.58
8.2.280.0040.00418.48
8.2.270.0110.00717.04
8.2.260.0140.00020.79
8.2.250.0140.00318.40
8.2.240.0120.00318.92
8.2.230.0040.00722.58
8.2.220.0040.00437.54
8.2.210.0050.00526.77
8.2.200.0060.00318.52
8.2.190.0180.00316.59
8.2.180.0040.01418.54
8.2.170.0110.00419.00
8.2.160.0130.00022.96
8.2.150.0060.00325.66
8.2.140.0080.01224.66
8.2.130.0040.00426.16
8.2.120.0050.00519.31
8.2.110.0030.00719.15
8.2.100.0330.00318.44
8.2.90.0270.00318.44
8.2.80.0260.00418.44
8.2.70.0190.01018.44
8.2.60.0300.00518.44
8.2.50.0200.00918.44
8.2.40.0270.00018.44
8.2.30.0310.00018.44
8.2.20.0240.00318.44
8.2.10.0290.00018.44
8.2.00.0220.00418.44
8.1.330.0100.00921.89
8.1.320.0130.00716.29
8.1.310.0070.01118.66
8.1.300.0130.00318.30
8.1.290.0030.00730.84
8.1.280.0100.01025.92
8.1.270.0030.00524.66
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00322.71
8.1.230.0270.00018.44
8.1.220.0200.00518.44
8.1.210.0200.01018.44
8.1.200.0170.01018.44
8.1.190.0240.00618.44
8.1.180.0190.00618.44
8.1.170.0240.00318.44
8.1.160.0230.00318.44
8.1.150.0180.00918.44
8.1.140.0250.00318.44
8.1.130.0200.00718.44
8.1.120.0200.00618.44
8.1.110.0130.01318.44
8.1.100.0230.00518.44
8.1.90.0180.00918.44
8.1.80.0240.00318.44
8.1.70.0240.00318.44
8.1.60.0240.00318.44
8.1.50.0210.00418.44
8.1.40.0230.00318.44
8.1.30.0230.00418.44
8.1.20.0210.00418.44
8.1.10.0240.00418.44
8.1.00.0220.00018.44
8.0.300.0150.00818.44
8.0.290.0270.00018.44
8.0.280.0230.00418.44
8.0.270.0270.00318.44
8.0.260.0290.00018.44
8.0.250.0240.00418.44
8.0.240.0270.00318.44
8.0.230.0290.00018.44
8.0.220.0220.00818.44
8.0.210.0160.01018.44
8.0.200.0240.00318.44
8.0.190.0140.01418.44
8.0.180.0240.00618.44
8.0.170.0270.00318.44
8.0.160.0160.01218.44
8.0.150.0180.00418.44
8.0.140.0220.00618.44
8.0.130.0140.00718.44
8.0.120.0240.00318.44
8.0.110.0260.00018.44
8.0.100.0270.00018.44
8.0.90.0140.01418.44
8.0.80.0270.00018.44
8.0.70.0210.00718.44
8.0.60.0240.00318.44
8.0.50.0230.00518.44
8.0.30.0220.00618.44
8.0.20.0260.00318.44
8.0.10.0220.00418.44

preferences:
89.55 ms | 403 KiB | 5 Q