3v4l.org

run code in 300+ PHP versions simultaneously
<?php $♫ = "music"; var_dump( $♫ ); // string(5) "music" $len = 0; $string = "♫"; var_dump($len = mb_strlen("♫", '8bit')); echo mb_substr($string, 0, $len);

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.3.60.0170.00316.75
8.3.50.0120.00722.06
8.3.40.0120.00318.71
8.3.30.0100.00318.95
8.3.20.0040.00420.16
8.3.10.0000.00823.28
8.3.00.0050.00319.38
8.2.180.0140.00718.29
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0060.00322.31
8.2.110.0040.00422.19
8.2.100.0080.00317.84
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0040.00417.36
8.2.60.0040.00417.79
8.2.50.0050.00318.07
8.2.40.0000.00718.09
8.2.30.0000.00717.96
8.2.20.0070.00017.58
8.2.10.0040.00418.05
8.2.00.0070.00317.67
8.1.280.0100.01025.92
8.1.270.0030.00623.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0060.00619.16
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0050.00317.14
8.1.180.0000.00918.10
8.1.170.0030.00618.53
8.1.160.0000.00722.00
8.1.150.0040.00418.63
8.1.140.0000.00717.42
8.1.130.0070.00017.73
8.1.120.0050.00217.44
8.1.110.0040.00417.43
8.1.100.0000.00817.31
8.1.90.0000.00817.41
8.1.80.0040.00417.42
8.1.70.0030.00317.34
8.1.60.0040.00417.57
8.1.50.0030.00617.50
8.1.40.0030.00617.39
8.1.30.0040.00417.46
8.1.20.0040.00417.55
8.1.10.0000.00817.47
8.1.00.0000.00717.48
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0040.00418.43
8.0.270.0040.00417.30
8.0.260.0040.00417.21
8.0.250.0000.00617.02
8.0.240.0080.00016.90
8.0.230.0070.00016.92
8.0.220.0000.00716.91
8.0.210.0050.00316.78
8.0.200.0020.00516.95
8.0.190.0000.00716.96
8.0.180.0000.00716.87
8.0.170.0040.00416.93
8.0.160.0000.00716.76
8.0.150.0000.00716.71
8.0.140.0000.00716.90
8.0.130.0030.00313.38
8.0.120.0040.00416.88
8.0.110.0030.00516.76
8.0.100.0080.00016.89
8.0.90.0030.00416.79
8.0.80.0050.00916.82
8.0.70.0070.00016.94
8.0.60.0040.00416.90
8.0.50.0040.00416.88
8.0.30.0100.00817.03
8.0.20.0090.01317.40
8.0.10.0020.00516.80
8.0.00.0060.01116.79
7.4.330.0000.00615.00
7.4.320.0000.00716.33
7.4.300.0030.00316.39
7.4.290.0070.00016.50
7.4.280.0040.00416.41
7.4.270.0000.00716.37
7.4.260.0030.00316.41
7.4.250.0070.00016.29
7.4.240.0030.00316.57
7.4.230.0030.00316.44
7.4.220.0080.00816.42
7.4.210.0050.01016.48
7.4.200.0000.00716.64
7.4.190.0030.00316.25
7.4.160.0000.01616.38
7.4.150.0070.01017.40
7.4.140.0120.00917.86
7.4.130.0120.00616.38
7.4.120.0100.00616.46
7.4.110.0090.00916.45
7.4.100.0160.00616.40
7.4.90.0030.01616.38
7.4.80.0070.01019.39
7.4.70.0120.00616.40
7.4.60.0060.01016.34
7.4.50.0060.00316.34
7.4.40.0000.01622.77
7.4.30.0100.00616.21
7.4.00.0090.00314.69
7.3.330.0030.00213.03
7.3.320.0000.00513.05
7.3.310.0070.00016.13
7.3.300.0000.00816.12
7.3.290.0160.00316.19
7.3.280.0060.01316.16
7.3.270.0140.00717.40
7.3.260.0070.01716.25
7.3.250.0120.00516.26
7.3.240.0130.01016.43
7.3.230.0130.00316.41
7.3.210.0120.00616.29
7.3.200.0120.00919.39
7.3.190.0120.00916.17
7.3.180.0090.00916.16
7.3.170.0030.01316.27
7.3.160.0100.00716.23
7.3.120.0120.00414.66
7.3.10.0070.00716.45
7.3.00.0090.00316.41
7.2.330.0140.00416.45
7.2.320.0140.00316.29
7.2.310.0080.01516.61
7.2.300.0040.01216.57
7.2.290.0110.00616.41
7.2.130.0100.00316.84
7.2.120.0030.01016.89
7.2.110.0000.01416.73
7.2.100.0040.01116.76
7.2.90.0030.01016.50
7.2.80.0050.00516.91
7.2.70.0060.00616.95
7.2.60.0030.01416.98
7.2.50.0060.00917.07
7.2.40.0040.00716.86
7.2.30.0080.00316.65
7.2.20.0040.01116.73
7.2.10.0070.00716.98
7.2.00.0080.00718.01
7.1.250.0000.00915.89
7.1.200.0230.00315.71
7.1.100.0000.01118.13
7.1.70.0030.00317.03
7.1.60.0100.01619.33
7.1.50.0100.01016.92
7.1.00.0030.07722.54
7.0.200.0070.00514.93
7.0.140.0000.07721.95
7.0.60.0100.07719.86
7.0.50.0000.06017.86
7.0.40.0100.08020.04
7.0.30.0430.06020.17
7.0.20.0200.04020.04
7.0.10.0070.04020.31
7.0.00.0030.08720.28
5.6.280.0000.06720.88
5.6.210.0030.04020.74
5.6.200.0070.07718.18
5.6.190.0030.08720.60
5.6.180.0200.08320.49
5.6.170.0200.07320.42
5.6.160.0030.04720.46
5.6.150.0000.07318.18
5.6.140.0000.06718.17
5.6.130.0070.08718.12
5.6.120.0070.08321.01
5.6.110.0130.08020.97
5.6.100.0200.07321.03
5.6.90.0030.06320.98
5.6.80.0100.04720.52
5.6.70.3330.04020.42
5.5.350.0100.06320.32
5.5.340.0170.03018.02
5.5.330.0100.08020.37
5.5.320.0030.08320.56
5.5.310.0230.07020.12
5.5.300.0070.08018.01
5.5.290.0000.08017.98
5.5.280.0100.03320.72
5.5.270.0130.07720.75
5.5.260.0070.05020.93
5.5.250.0200.05020.78
5.5.240.0130.06320.25
5.4.450.0670.06019.45
5.4.440.0230.06019.48
5.4.430.0200.06019.47
5.4.420.0300.07019.55
5.4.410.0230.05319.32
5.4.400.0270.06019.31
5.4.390.0300.07318.83
5.4.380.0470.04718.62
5.4.370.0300.04018.58
5.4.360.0130.06318.72
5.4.350.0300.07018.57
5.4.340.0300.07318.77
5.4.320.0030.03812.45
5.4.310.0090.04012.45
5.4.300.0100.03612.45
5.4.290.0050.04412.45
5.4.280.0160.08012.32
5.4.270.0230.08712.32
5.4.260.0130.09012.32
5.4.250.0150.06912.32
5.4.240.0130.05512.32
5.4.230.0060.06012.31
5.4.220.0070.06812.31
5.4.210.0120.07512.31
5.4.200.0150.06812.31
5.4.190.0090.05612.30
5.4.180.0140.07512.30
5.4.170.0160.06312.32
5.4.160.0220.07912.31
5.4.150.0110.05612.31
5.4.140.0220.07012.00
5.4.130.0170.06211.98
5.4.120.0230.05411.94
5.4.110.0150.04911.94
5.4.100.0090.04711.94
5.4.90.0130.08611.94
5.4.80.0140.04711.93
5.4.70.0050.04411.93
5.4.60.0090.05411.93
5.4.50.0190.05711.93
5.4.40.0240.07711.92
5.4.30.0320.11211.92
5.4.20.0220.07411.91
5.4.10.0080.04811.92
5.4.00.0100.06011.41
5.3.290.0050.04112.80
5.3.280.0190.07012.71
5.3.270.0180.06312.72
5.3.260.0130.06612.72
5.3.250.0190.07212.71
5.3.240.0150.05512.72
5.3.230.0140.06912.71
5.3.220.0200.05512.68
5.3.210.0140.07112.68
5.3.200.0110.06812.68
5.3.190.0080.06712.68
5.3.180.0090.06512.67
5.3.170.0150.06312.67
5.3.160.0150.06412.68
5.3.150.0160.07012.67
5.3.140.0270.07712.66
5.3.130.0330.13212.66
5.3.120.0170.04212.66
5.3.110.0170.06712.66
5.3.100.0290.06112.12
5.3.90.0110.06012.08
5.3.80.0130.03512.08
5.3.70.0090.04712.08
5.3.60.0110.05312.06
5.3.50.0050.05212.00
5.3.40.0150.06712.00
5.3.30.0160.04311.94
5.3.20.0550.16211.70
5.3.10.0080.03911.66
5.3.00.0130.06411.66
5.2.170.0070.0419.15
5.2.160.0030.0429.15
5.2.150.0090.0369.15
5.2.140.0060.0439.14
5.2.130.0130.0439.11
5.2.120.0100.0459.11
5.2.110.0170.0749.11
5.2.100.0110.0589.12
5.2.90.0120.0749.11
5.2.80.0230.0869.11
5.2.70.0090.0469.11
5.2.60.0100.0499.06
5.2.50.0120.0409.03
5.2.40.0080.0389.00
5.2.30.0090.0338.98
5.2.20.0070.0568.96
5.2.10.0100.0348.89
5.2.00.0210.0558.76
5.1.60.0090.0308.04
5.1.50.0080.0318.04
5.1.40.0140.0318.03
5.1.30.0110.0408.37
5.1.20.0110.0438.40
5.1.10.0110.0588.13
5.1.00.0050.0328.13
5.0.50.0050.0286.60
5.0.40.0180.0526.46
5.0.30.0080.0516.27
5.0.20.0040.0236.25
5.0.10.0160.0396.22
5.0.00.0080.0466.21
4.4.90.0090.0494.78
4.4.80.0040.0504.75
4.4.70.0080.0254.75
4.4.60.0040.0364.75
4.4.50.0070.0414.77
4.4.40.0190.0484.71
4.4.30.0070.0454.76
4.4.20.0070.0394.84
4.4.10.0120.0454.85
4.4.00.0080.0484.76
4.3.110.0140.0454.67
4.3.100.0090.0334.66
4.3.90.0120.0714.63
4.3.80.0040.0374.58
4.3.70.0080.0224.63
4.3.60.0070.0384.63
4.3.50.0130.0394.63
4.3.40.0050.0514.54
4.3.30.0030.0333.27
4.3.20.0130.0343.25
4.3.10.0090.0533.21
4.3.00.0230.01310.37

preferences:
50.76 ms | 401 KiB | 5 Q