3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "u\xcc\x88"; var_dump($string); var_dump(mb_substr($string, 0, 1));

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.4.10.0040.00420.53
8.3.140.0100.00718.89
8.3.130.0060.00918.40
8.3.120.0060.00318.99
8.3.110.0000.00820.94
8.3.100.0100.01024.06
8.3.90.0150.00326.77
8.3.80.0090.00016.50
8.3.70.0150.00316.63
8.3.60.0060.00918.05
8.3.50.0070.00923.59
8.3.40.0110.00821.91
8.3.30.0130.00718.45
8.3.20.0030.00524.18
8.3.10.0040.00424.66
8.3.00.0050.00226.16
8.2.260.0090.00916.30
8.2.250.0040.00416.48
8.2.240.0120.00616.94
8.2.230.0080.00022.58
8.2.220.0130.00637.54
8.2.210.0060.00326.77
8.2.200.0030.00716.63
8.2.190.0110.00416.58
8.2.180.0070.00725.92
8.2.170.0170.00318.96
8.2.160.0060.00922.96
8.2.150.0100.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0000.00919.31
8.2.100.0040.00817.78
8.2.90.0000.00817.62
8.2.80.0000.00819.07
8.2.70.0050.00317.92
8.2.60.0050.00318.22
8.2.50.0000.00918.10
8.2.40.0040.00419.36
8.2.30.0040.00419.27
8.2.20.0000.00718.06
8.2.10.0070.00021.00
8.2.00.0000.00719.04
8.1.300.0050.00317.36
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0130.00623.78
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0040.00822.64
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0000.00917.22
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0020.00518.91
8.1.150.0070.00018.72
8.1.140.0050.00218.91
8.1.130.0070.00020.05
8.1.120.0000.00717.41
8.1.110.0040.00417.34
8.1.100.0040.00417.40
8.1.90.0040.00417.30
8.1.80.0000.00717.43
8.1.70.0000.00717.26
8.1.60.0040.00417.55
8.1.50.0000.00717.35
8.1.40.0000.00717.52
8.1.30.0060.00317.59
8.1.20.0020.00517.65
8.1.10.0040.00417.47
8.1.00.0000.00817.47
8.0.300.0030.00621.79
8.0.290.0050.00316.75
8.0.280.0070.00018.47
8.0.270.0030.00316.85
8.0.260.0030.00320.20
8.0.250.0030.00316.99
8.0.240.0030.00316.95
8.0.230.0070.00016.84
8.0.220.0030.00316.87
8.0.210.0000.00716.91
8.0.200.0000.00616.89
8.0.190.0040.00416.83
8.0.180.0000.00816.88
8.0.170.0060.00316.87
8.0.160.0080.00016.91
8.0.150.0000.00916.77
8.0.140.0020.00516.85
8.0.130.0050.00013.26
8.0.120.0050.00316.83
8.0.110.0040.00416.74
8.0.100.0070.00016.83
8.0.90.0000.00716.89
8.0.80.0090.00816.80
8.0.70.0070.00016.70
8.0.60.0040.00416.88
8.0.50.0070.00016.85
8.0.30.0090.00917.00
8.0.20.0080.01017.00
8.0.10.0030.00616.82
8.0.00.0090.00916.58
7.4.330.0050.00015.55
7.4.320.0030.00316.57
7.4.300.0000.00616.42
7.4.290.0030.00616.51
7.4.280.0040.00416.54
7.4.270.0030.00316.46
7.4.260.0000.00613.21
7.4.250.0040.00416.39
7.4.240.0070.00016.45
7.4.230.0030.00316.42
7.4.220.0030.00316.34
7.4.210.0090.00716.49
7.4.200.0040.00416.33
7.4.130.0140.00316.42
7.4.120.0060.01216.48
7.4.110.0170.00216.21
7.4.100.0090.00915.97
7.4.90.0080.01216.08
7.4.80.0070.01716.15
7.4.70.0100.01016.11
7.4.60.0090.01016.04
7.4.50.0080.01516.02
7.4.40.0110.01316.09
7.4.30.0090.01016.06
7.4.20.0090.00916.26
7.4.10.0190.00716.28
7.4.00.0140.00716.15
7.3.330.0000.00716.15
7.3.320.0000.00513.06
7.3.310.0060.00016.19
7.3.300.0030.00316.18
7.3.290.0070.01116.13
7.3.260.0120.00816.12
7.3.230.0100.00716.28
7.3.220.0150.00516.23
7.3.210.0130.00615.96
7.3.200.0170.00416.12
7.3.190.0110.00716.01
7.3.180.0080.01016.16
7.3.170.0110.01016.11
7.3.160.0140.00615.99
7.3.150.0120.00716.12
7.3.140.0190.00916.09
7.3.130.0170.01116.21
7.3.120.0170.00816.11
7.3.110.0220.00416.28
7.3.100.0140.01116.20
7.3.90.0180.00916.13
7.3.80.0160.01016.04
7.3.70.0150.01016.07
7.3.60.0160.00916.08
7.3.50.0120.01015.88
7.3.40.0170.00715.86
7.3.30.0140.00916.22
7.3.20.0240.00816.10
7.3.10.0140.01316.05
7.3.00.0130.00816.13
7.2.340.0070.00916.28
7.2.330.0110.00816.44
7.2.320.0140.00816.43
7.2.310.0100.01016.29
7.2.300.0120.01116.13
7.2.290.0110.00816.17
7.2.280.0110.00916.23
7.2.270.0060.01516.41
7.2.260.0200.00916.29
7.2.250.0150.01116.39
7.2.240.0180.01016.17
7.2.230.0140.01116.33
7.2.220.0160.00916.37
7.2.210.0260.00316.26
7.2.200.0130.01416.23
7.2.190.0150.01116.26
7.2.180.0130.00916.05
7.2.170.0160.00716.13
7.2.160.0180.00616.12
7.2.150.0090.01416.36
7.2.140.0160.00816.09
7.2.130.0390.00916.10
7.2.120.0210.01116.32
7.2.110.0100.01516.33
7.2.100.0140.01416.07
7.2.90.0150.00916.29
7.2.80.0140.00916.26
7.2.70.0120.01116.22
7.2.60.0140.00816.05
7.2.50.0150.00616.11
7.2.40.0110.01316.19
7.2.30.0110.00916.25
7.2.20.0090.01216.28
7.2.10.0170.01116.32
7.2.00.0150.00716.32
7.1.330.0220.00815.56
7.1.320.0180.01115.38
7.1.310.0160.01615.36
7.1.300.0180.01115.37
7.1.290.0230.00715.51
7.1.280.0290.00315.36
7.1.270.0230.01315.29
7.1.260.0190.01115.35
7.1.250.0260.00515.28
7.1.240.0230.01015.38
7.1.230.0100.02015.50
7.1.220.0220.01115.45
7.1.210.0260.00715.38
7.1.200.0270.00715.41
7.1.190.0250.00615.50
7.1.180.0180.00915.20
7.1.170.0250.00315.34
7.1.160.0200.01015.27
7.1.150.0260.00615.46
7.1.140.0190.01315.42
7.1.130.0250.00315.36
7.1.120.0110.01715.18
7.1.110.0160.01215.39
7.1.100.0200.00715.58
7.1.90.0250.00615.26
7.1.80.0300.00015.41
7.1.70.0130.01615.32
7.1.60.0200.01015.37
7.1.50.0200.01015.46
7.1.40.0170.01315.47
7.1.30.0180.01215.43
7.1.20.0250.00415.50
7.1.10.0190.01215.54
7.1.00.0280.00415.28
7.0.330.0270.00315.09
7.0.320.0210.00715.14
7.0.310.0150.01515.04
7.0.300.0350.00714.96
7.0.290.0200.01315.21
7.0.280.0220.00715.18
7.0.270.0240.00415.16
7.0.260.0190.00814.95
7.0.250.0070.01915.13
7.0.240.0160.01315.24
7.0.230.0210.00914.99
7.0.220.0450.00815.00
7.0.210.0240.00715.18
7.0.200.0220.00914.87
7.0.190.0210.00715.20
7.0.180.0310.00015.07
7.0.170.0220.00815.23
7.0.160.0170.01115.04
7.0.150.0130.01315.01
7.0.140.0200.00815.13
7.0.130.0180.00915.12
7.0.120.0220.00515.06
7.0.110.0280.00314.98
7.0.100.0280.00315.08
7.0.90.0220.00615.05
7.0.80.0620.00614.98
7.0.70.0290.00015.12
7.0.60.0210.00715.03
7.0.50.0240.00415.01
7.0.40.0290.00015.23
7.0.30.0150.01115.14
7.0.20.0190.01215.13
7.0.10.0240.00314.82
7.0.00.0160.01315.04
5.6.400.0180.01215.83
5.6.390.0240.00415.69
5.6.380.0210.01315.66
5.6.370.0220.00815.91
5.6.360.0140.01415.48
5.6.350.0240.00515.77
5.6.340.0190.01315.91
5.6.330.0230.00915.92
5.6.320.0200.01315.57
5.6.310.0130.01715.44
5.6.300.0210.00915.75
5.6.290.0250.00615.82
5.6.280.0240.00815.85
5.6.270.0220.00615.86
5.6.260.0170.01415.80
5.6.250.0210.01015.75
5.6.240.0230.00615.68
5.6.230.0160.01315.80
5.6.220.0230.00815.57
5.6.210.0160.01615.89
5.6.200.0160.01215.70
5.6.190.0240.01015.56
5.6.180.0220.00915.61
5.6.170.0260.00715.54
5.6.160.0220.00715.89
5.6.150.0200.01415.81
5.6.140.0240.00915.57
5.6.130.0170.00915.64
5.6.120.0120.01215.64
5.6.110.0190.01215.66
5.6.100.0130.01315.74
5.6.90.0220.00915.66
5.6.80.0210.01115.29
5.6.70.0230.00315.45
5.6.60.0160.01315.51
5.6.50.0110.01515.58
5.6.40.0100.01715.50
5.6.30.0550.04415.60
5.6.20.0600.01015.80
5.6.10.0200.01015.41
5.6.00.0450.02515.51
5.5.380.0250.00615.52
5.5.370.0110.01815.61
5.5.360.0190.01215.45
5.5.350.0160.01915.60
5.5.340.0210.01515.48
5.5.330.0250.00715.53
5.5.320.0150.01915.63
5.5.310.0280.01115.58
5.5.300.0190.01615.41
5.5.290.0210.00715.70
5.5.280.0160.01615.62
5.5.270.0250.00415.86
5.5.260.0200.01415.55
5.5.250.0200.01415.57
5.5.240.0200.01015.61
5.5.230.0180.01315.48
5.5.220.0180.01215.72
5.5.210.0180.01415.54
5.5.200.0230.00915.56
5.5.190.0650.02815.58
5.5.180.0360.01915.59
5.5.170.0170.01215.57
5.5.160.0110.01915.58
5.5.150.0140.01515.54
5.5.140.0100.01815.48
5.5.130.0260.01415.60
5.5.120.0200.00915.45
5.5.110.0210.00915.22
5.5.100.0160.01315.64
5.5.90.0190.01315.64
5.5.80.0210.00815.64
5.5.70.0210.00815.53
5.5.60.0090.01915.44
5.5.50.0210.00915.55
5.5.40.0200.01515.68
5.5.30.0200.01015.62
5.5.20.0170.01315.42
5.5.10.0250.00415.50
5.5.00.0230.00715.70
5.4.450.0070.01112.54
5.4.440.0110.00612.43
5.4.430.0170.00612.45
5.4.420.0210.00312.40
5.4.410.0070.01412.29
5.4.400.0130.00912.49
5.4.390.0210.00412.42
5.4.380.0090.01512.32
5.4.370.0120.01212.34
5.4.360.0150.00812.34
5.4.350.0370.02912.33
5.4.340.0260.01312.28
5.4.330.0200.00312.27
5.4.320.0170.00712.29
5.4.310.0190.00312.28
5.4.300.0210.02012.63
5.4.290.0110.01412.29
5.4.280.0190.00612.34
5.4.270.0110.01212.30
5.4.260.0150.01012.27
5.4.250.0190.00312.36
5.4.240.0410.01012.27
5.4.230.0200.00312.46
5.4.220.0150.01112.27
5.4.210.0130.01012.53
5.4.200.0150.00912.27
5.4.190.0180.00712.52
5.4.180.0170.00612.60
5.4.170.0150.00812.27
5.4.160.0120.01212.27
5.4.150.0470.01212.39
5.4.140.0170.00912.51
5.4.130.0230.00012.45
5.4.120.0190.00312.52
5.4.110.0200.00612.36
5.4.100.0170.00412.45
5.4.90.0150.00612.40
5.4.80.0160.00612.43
5.4.70.0110.01212.51
5.4.60.0140.00712.57
5.4.50.0130.01312.39
5.4.40.0160.01012.42
5.4.30.0180.00412.36
5.4.20.0110.01112.43
5.4.10.0220.00712.33
5.4.00.0150.00712.59
5.3.290.0180.00412.93
5.3.280.0210.00312.77
5.3.270.0140.00912.79
5.3.260.0140.00912.93
5.3.250.0100.01612.87
5.3.240.0160.00812.79
5.3.230.0150.00912.73
5.3.220.0180.00712.80
5.3.210.0140.01212.64
5.3.200.0110.01112.63
5.3.190.0130.00812.87
5.3.180.0170.00912.93
5.3.170.0160.00812.88
5.3.160.0150.00913.15
5.3.150.0140.01412.88
5.3.140.0180.01212.87
5.3.130.0130.01012.80
5.3.120.0170.01012.88
5.3.110.0160.00812.95
5.3.100.0420.01112.87
5.3.90.0110.01112.91
5.3.80.0070.01612.71
5.3.70.0120.00912.70
5.3.60.0120.01212.93
5.3.50.0230.00012.79
5.3.40.0150.01112.93
5.3.30.0200.00712.84
5.3.20.0140.00912.90
5.3.10.0140.00712.70
5.3.00.0130.01312.72
5.2.170.0120.01212.27
5.2.160.0130.01012.27
5.2.150.0100.01312.27
5.2.140.0110.00712.27
5.2.130.0120.00612.27
5.2.120.0160.00312.27
5.2.110.0160.00312.27
5.2.100.0090.00912.27
5.2.90.0170.00312.27
5.2.80.0090.01012.27
5.2.70.0140.00512.27
5.2.60.0130.00712.27
5.2.50.0110.00912.27
5.2.40.0120.00712.27
5.2.30.0150.00312.27
5.2.20.0140.00512.27
5.2.10.0150.00912.27
5.2.00.0140.00512.27
5.1.60.0080.00812.27
5.1.50.0120.00312.27
5.1.40.0060.01012.27
5.1.30.0080.00812.27
5.1.20.0070.01012.27
5.1.10.0130.00312.27
5.1.00.0120.00412.27
5.0.50.0050.01012.27
5.0.40.0000.01412.27
5.0.30.0110.00312.27
5.0.20.0040.00912.27
5.0.10.0110.00612.27
5.0.00.0100.00312.27
4.4.90.0060.00312.27
4.4.80.0090.00312.27
4.4.70.0070.00412.27
4.4.60.0040.00412.27
4.4.50.0080.00312.27
4.4.40.0060.00312.27
4.4.30.0050.00312.27
4.4.20.0000.01012.27
4.4.10.0040.00712.27
4.4.00.0040.00412.27
4.3.110.0000.00812.27
4.3.100.0060.00212.27
4.3.90.0040.00412.27
4.3.80.0080.00312.27
4.3.70.0070.00212.27
4.3.60.0070.00312.27
4.3.50.0040.00412.27
4.3.40.0090.00012.27
4.3.30.0050.00312.27
4.3.20.0050.00412.27
4.3.10.0080.00012.27
4.3.00.0000.00812.27

preferences:
79.78 ms | 403 KiB | 5 Q