3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "In My Cart : 11 items"; var_export(filter_var($string, FILTER_SANITIZE_NUMBER_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.5.10.0090.00916.63
8.5.00.0110.01019.96
8.4.160.0140.00923.84
8.4.150.0030.00014.05
8.4.140.0100.01117.30
8.4.130.0140.00518.02
8.4.120.0110.00820.34
8.4.110.0100.01022.36
8.4.100.0120.00817.29
8.4.90.0040.00518.50
8.4.80.0150.00517.50
8.4.70.0130.00617.55
8.4.60.0140.00720.26
8.4.50.0090.01124.10
8.4.40.0100.01017.43
8.4.30.0040.01518.72
8.4.20.0000.00817.86
8.4.10.0130.00619.21
8.3.280.0120.00918.27
8.3.270.0110.01016.42
8.3.260.0120.00716.43
8.3.250.0140.00519.03
8.3.240.0110.00818.38
8.3.230.0120.00716.68
8.3.220.0110.00716.93
8.3.210.0090.01116.44
8.3.200.0040.00416.44
8.3.190.0090.01016.71
8.3.180.0070.00216.34
8.3.170.0110.00718.81
8.3.160.0190.00018.32
8.3.150.0180.00020.54
8.3.140.0090.00916.32
8.3.130.0080.00018.43
8.3.120.0060.00320.86
8.3.110.0000.00920.94
8.3.100.0030.00724.06
8.3.90.0040.00426.77
8.3.80.0000.00917.97
8.3.70.0110.00418.18
8.3.60.0110.01118.38
8.3.50.0070.01016.52
8.3.40.0070.00721.59
8.3.30.0100.00718.92
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0080.00727.12
8.2.290.0050.00520.47
8.2.280.0080.00222.17
8.2.270.0090.00617.27
8.2.260.0080.00018.30
8.2.250.0080.00016.58
8.2.240.0060.00318.73
8.2.230.0120.00322.58
8.2.220.0190.00037.54
8.2.210.0170.00026.77
8.2.200.0100.00016.63
8.2.190.0100.01016.58
8.2.180.0210.00016.38
8.2.170.0110.00418.66
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0030.01624.66
8.2.130.0070.00927.12
8.2.120.0080.00724.46
8.2.110.0020.01023.70
8.2.100.0180.00823.26
8.2.90.0180.00923.26
8.2.80.0200.00323.26
8.2.70.0160.00523.26
8.2.60.0170.00823.26
8.2.50.0130.00523.26
8.2.40.0150.00423.26
8.2.30.0140.00623.26
8.2.20.0100.00723.26
8.2.10.0150.00823.26
8.2.00.0200.00723.26
8.1.330.0100.00922.09
8.1.320.0120.00716.21
8.1.310.0040.00418.54
8.1.300.0040.00418.58
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0000.00724.66
8.1.260.0030.00627.22
8.1.250.0050.00328.09
8.1.240.0060.00323.79
8.1.230.0120.01023.26
8.1.220.0200.00023.26
8.1.210.0120.00923.26
8.1.200.0190.00323.26
8.1.190.0130.01023.26
8.1.180.0130.00523.26
8.1.170.0130.00523.26
8.1.160.0130.00423.26
8.1.150.0130.00523.26
8.1.140.0140.00823.26
8.1.130.0130.00523.26
8.1.120.0110.00623.26
8.1.110.0130.00823.26
8.1.100.0140.00323.26
8.1.90.0120.00623.26
8.1.80.0140.00723.26
8.1.70.0120.00623.26
8.1.60.0140.00423.26
8.1.50.0190.00023.26
8.1.40.0090.00723.26
8.1.30.0190.00223.26
8.1.20.0140.00123.26
8.1.10.0150.00523.26
8.1.00.0130.00323.26
8.0.300.0190.00223.26
8.0.290.0150.00723.26
8.0.280.0210.00223.26
8.0.270.0170.00223.26
8.0.260.0200.00623.26
8.0.250.0110.00823.26
8.0.240.0160.00623.26
8.0.230.0180.00423.26
8.0.220.0140.00523.26
8.0.210.0170.00123.26
8.0.200.0160.00223.26
8.0.190.0110.00623.26
8.0.180.0140.00323.26
8.0.170.0160.00123.26
8.0.160.0140.00523.26
8.0.150.0120.00323.26
8.0.140.0120.00823.26
8.0.130.0110.00423.26
8.0.120.0120.00623.26
8.0.110.0160.00223.26
8.0.100.0150.00223.26
8.0.90.0100.01023.26
8.0.80.0120.00423.26
8.0.70.0180.00023.26
8.0.60.0190.00223.26
8.0.50.0190.00223.26
8.0.30.0190.00023.26
8.0.20.0140.00423.26
8.0.10.0140.00923.26

preferences:
94.85 ms | 403 KiB | 5 Q