3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "In My Cart : 11 items"; var_export((int) ltrim($string, 'A..z: '));

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.30.0100.00719.41
8.5.20.0060.01218.88
8.5.10.0120.00616.54
8.5.00.0120.00819.82
8.4.180.0130.00723.79
8.4.170.0150.00721.95
8.4.160.0150.00823.82
8.4.150.0060.00616.78
8.4.140.0120.00817.37
8.4.130.0120.00817.69
8.4.120.0110.00923.97
8.4.110.0120.00819.04
8.4.100.0110.00917.43
8.4.90.0130.00722.31
8.4.80.0090.01118.75
8.4.70.0140.00520.56
8.4.60.0120.00718.70
8.4.50.0130.00722.04
8.4.40.0180.00017.66
8.4.30.0140.00718.75
8.4.20.0050.00318.02
8.4.10.0120.00819.35
8.3.300.0150.00920.72
8.3.290.0120.00918.35
8.3.280.0130.01118.16
8.3.270.0110.00916.49
8.3.260.0100.00916.44
8.3.250.0100.00718.75
8.3.240.0030.00516.86
8.3.230.0070.00116.50
8.3.220.0040.00418.76
8.3.210.0130.00716.63
8.3.200.0050.00416.74
8.3.190.0100.00916.58
8.3.180.0040.00516.40
8.3.170.0030.01218.95
8.3.160.0040.01518.43
8.3.150.0180.00020.84
8.3.140.0050.00318.47
8.3.130.0030.00618.34
8.3.120.0200.00019.07
8.3.110.0060.00316.63
8.3.100.0070.00016.42
8.3.90.0040.00418.43
8.3.80.0090.00018.30
8.3.70.0120.00316.62
8.3.60.0100.00618.09
8.3.50.0120.00316.84
8.3.40.0030.01021.90
8.3.30.0090.00919.02
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0100.00026.16
8.2.300.0120.01218.07
8.2.290.0060.00916.42
8.2.280.0150.00518.33
8.2.270.0090.00617.17
8.2.260.0100.00718.62
8.2.250.0060.00316.49
8.2.240.0040.00417.09
8.2.230.0070.00220.94
8.2.220.0060.00324.06
8.2.210.0100.00726.77
8.2.200.0060.00916.11
8.2.190.0060.01316.65
8.2.180.0090.00616.63
8.2.170.0110.00418.61
8.2.160.0130.00022.96
8.2.150.0000.00725.66
8.2.140.0100.01024.66
8.2.130.0130.00026.16
8.2.120.0110.00021.00
8.2.110.0030.00620.35
8.2.100.0340.00018.44
8.2.90.0270.00818.44
8.2.80.0210.00818.44
8.2.70.0290.00718.44
8.2.60.0240.00518.44
8.2.50.0230.00818.44
8.2.40.0230.00418.44
8.2.30.0250.00318.44
8.2.20.0210.00818.44
8.2.10.0200.00618.44
8.2.00.0250.00318.44
8.1.340.0120.01017.48
8.1.330.0110.00816.20
8.1.320.0110.00717.82
8.1.310.0140.00016.41
8.1.300.0000.00917.88
8.1.290.0040.00418.88
8.1.280.0040.01425.92
8.1.270.0000.00724.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.68
8.1.230.0270.00018.44
8.1.220.0200.00718.44
8.1.210.0180.00818.44
8.1.200.0280.00018.44
8.1.190.0260.00318.44
8.1.180.0230.00318.44
8.1.170.0150.01218.44
8.1.160.0210.00518.44
8.1.150.0230.00318.44
8.1.140.0230.00418.44
8.1.130.0190.00618.44
8.1.120.0200.00618.44
8.1.110.0270.00018.44
8.1.100.0200.00818.44
8.1.90.0200.00618.44
8.1.80.0130.01318.44
8.1.70.0240.00418.44
8.1.60.0240.00318.44
8.1.50.0230.00018.44
8.1.40.0180.00618.44
8.1.30.0240.00318.44
8.1.20.0200.00318.44
8.1.10.0240.00318.44
8.1.00.0180.00618.44
8.0.300.0220.00418.44
8.0.290.0280.00018.44
8.0.280.0230.01018.44
8.0.270.0220.00618.44
8.0.260.0250.00218.44
8.0.250.0250.00018.44
8.0.240.0210.00518.44
8.0.230.0260.00318.44
8.0.220.0200.00818.44
8.0.210.0220.00918.44
8.0.200.0260.00318.44
8.0.190.0210.00418.44
8.0.180.0170.01018.44
8.0.170.0170.01018.44
8.0.160.0180.00918.44
8.0.150.0210.00318.44
8.0.140.0270.00018.44
8.0.130.0160.00518.44
8.0.120.0230.00418.44
8.0.110.0210.00418.44
8.0.100.0230.00418.44
8.0.90.0170.01018.44
8.0.80.0240.00318.44
8.0.70.0230.00318.44
8.0.60.0260.00018.44
8.0.50.0250.00018.44
8.0.30.0260.00018.44
8.0.20.0210.00418.44
8.0.10.0220.00418.44

preferences:
55.51 ms | 1100 KiB | 5 Q