3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_strwidth("①", "UTF-8")); var_dump(mb_strwidth("※", "UTF-8")); var_dump(mb_strwidth("@, "UTF-8"));

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)
5.6.70.4430.03720.39
5.4.390.0400.05019.08
5.4.380.0270.05718.67
5.4.370.0370.04718.64
5.4.360.0270.05718.46
5.4.350.0500.06318.75
5.4.340.0300.05018.74
5.4.320.0200.06318.69
5.4.310.0270.05318.64
5.4.300.0300.05018.64
5.4.290.0330.04718.49
5.4.280.0270.05718.49
5.4.270.0300.05718.48
5.4.260.0300.05318.51
5.4.250.0270.06018.77
5.4.240.0330.05318.71
5.4.230.0400.04718.72
5.4.220.0100.06718.59
5.4.210.0370.04318.70
5.4.200.0200.05716.80
5.4.190.0570.05018.65
5.4.180.0330.07318.45
5.4.170.0430.06718.55
5.4.160.0370.07018.69
5.4.150.0300.06318.71
5.4.140.0370.04716.27
5.4.130.0270.05016.26
5.4.120.0330.04716.27
5.4.110.0370.04016.43
5.4.100.0300.05316.27
5.4.90.0230.05716.29
5.4.80.0270.05016.14
5.4.70.0270.05316.17
5.4.60.0330.04016.20
5.4.50.0270.05316.39
5.4.40.0230.05316.18
5.4.30.0430.06016.17
5.4.20.0230.07316.39
5.4.10.0370.04716.14
5.4.00.0230.05315.86
5.3.290.0430.06314.64
5.3.280.0530.03714.59
5.3.270.0330.05714.57
5.3.260.0330.05314.52
5.3.250.0300.07714.66
5.3.240.0330.07014.59
5.3.230.0300.05014.52
5.3.220.0270.06014.66
5.3.210.0270.05314.48
5.3.200.0330.06714.50
5.3.190.0330.05314.55
5.3.180.0330.04314.66
5.3.170.0330.05314.55
5.3.160.0400.05314.47
5.3.150.0230.06714.57
5.3.140.0300.07314.52
5.3.130.0270.06014.53
5.3.120.0370.04714.50
5.3.110.0270.07314.63
5.3.100.0430.06014.00
5.3.90.0370.06713.96
5.3.80.0230.07313.98
5.3.70.0230.05313.97
5.3.60.0100.06314.10
5.3.50.0230.05313.85
5.3.40.0230.05014.06
5.3.30.0270.06313.89
5.3.20.0230.05313.60
5.3.10.0230.05313.60
5.3.00.0270.07013.73
5.2.170.0400.04311.18
5.2.160.0130.04711.09
5.2.150.0100.04711.09
5.2.140.0330.04311.27
5.2.130.0230.04011.24
5.2.120.0230.03711.13
5.2.110.0230.04011.02
5.2.100.0200.04311.07
5.2.90.0270.04011.10
5.2.80.0200.04311.10
5.2.70.0300.03711.16
5.2.60.0300.05011.20
5.2.50.0230.04710.95
5.2.40.0170.04011.03
5.2.30.0230.05711.12
5.2.20.0300.05710.99
5.2.10.0230.04310.81
5.2.00.0230.03710.75
5.1.60.0330.0279.99
5.1.50.0230.04310.02
5.1.40.0230.04310.03
5.1.30.0230.05010.40
5.1.20.0270.03710.34
5.1.10.0200.04010.12
5.1.00.0370.02710.13
5.0.50.0270.0308.64
5.0.40.0170.0238.43
5.0.30.0070.0538.27
5.0.20.0130.0278.30
5.0.10.0070.0308.15
5.0.00.0170.0378.20
4.4.90.0200.0176.64
4.4.80.0100.0206.64
4.4.70.0170.0176.64
4.4.60.0170.0306.64
4.4.50.0170.0206.64
4.4.40.0130.0436.64
4.4.30.0130.0306.64
4.4.20.0100.0236.64
4.4.10.0130.0236.64
4.4.00.0170.0306.64
4.3.110.0070.0236.64
4.3.100.0070.0276.64
4.3.90.0100.0276.64
4.3.80.0170.0376.64
4.3.70.0100.0236.64
4.3.60.0130.0206.64
4.3.50.0100.0206.64
4.3.40.0100.0376.64
4.3.30.0030.0276.64
4.3.20.0100.0206.64
4.3.10.0130.0276.64
4.3.00.0030.0207.03

preferences:
142.79 ms | 1394 KiB | 7 Q