3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(iconv_substr('',0,10,'utf-8')); var_dump(substr('',0,10)); var_dump(mb_substr('',0,10));
based on S4R1N

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)
7.4.10.0090.00915.14
7.4.00.0070.01114.91
7.3.130.0090.01314.57
7.3.120.0070.01214.94
7.3.110.0080.01014.76
7.3.100.0080.00714.81
7.3.90.0070.00914.84
7.3.80.0070.00514.80
7.3.70.0080.00314.83
7.3.60.0020.01114.69
7.3.50.0030.01014.91
7.3.40.0000.01314.79
7.3.30.0080.00814.74
7.3.20.0020.01616.64
7.3.10.0050.00916.70
7.3.00.0090.00616.52
7.2.260.0070.01415.19
7.2.250.0100.01014.96
7.2.240.0030.01214.80
7.2.230.0050.01014.92
7.2.220.0080.00915.04
7.2.210.0030.01114.98
7.2.200.0000.01414.97
7.2.190.0050.01014.98
7.2.180.0090.00714.97
7.2.170.0080.00514.90
7.2.160.0110.00715.23
7.2.150.0060.00916.82
7.2.140.0040.01116.87
7.2.130.0000.01416.47
7.2.120.0070.00816.72
7.2.110.0030.01216.73
7.2.100.0050.00916.83
7.2.90.0050.00516.65
7.2.80.0040.01116.54
7.2.70.0050.01116.67
7.2.60.0020.01316.90
7.2.50.0060.01016.80
7.2.40.0040.00816.94
7.2.30.0070.01116.96
7.2.20.0050.00616.73
7.2.10.0060.01116.71
7.2.00.0090.00717.57
7.1.330.0090.00715.70
7.1.320.0020.01315.81
7.1.310.0030.01215.78
7.1.300.0040.00915.63
7.1.290.0050.00915.89
7.1.280.0070.00815.82
7.1.270.0070.01215.58
7.1.260.0020.01415.83
7.1.250.0020.01115.85
7.1.240.0030.00715.80
7.1.230.0030.00715.89
7.1.220.0000.01415.60
7.1.210.0060.00615.88
7.1.200.0030.01115.80
7.1.190.0070.01115.89
7.1.180.0090.00615.81
7.1.170.0030.01015.85
7.1.160.0080.00815.88
7.1.150.0100.01015.68
7.1.140.0070.01015.52
7.1.130.0080.00815.58
7.1.120.0130.00315.84
7.1.110.0070.00715.89
7.1.100.0050.00617.04
7.1.90.0070.00715.80
7.1.80.0060.01015.75
7.1.70.0040.00616.55
7.1.60.0090.00916.58
7.1.50.0020.01416.44
7.1.40.0020.01416.30
7.1.30.0030.01016.30
7.1.20.0050.00916.38
7.1.10.0020.01016.19
7.1.00.0060.00616.27
7.0.330.0090.00315.50
7.0.320.0030.00715.38
7.0.310.0090.00615.39
7.0.300.0130.00315.45
7.0.290.0040.01215.36
7.0.280.0060.00915.55
7.0.270.0060.00315.52
7.0.260.0060.00315.22
7.0.250.0070.01015.59
7.0.240.0110.00315.45
7.0.230.0000.01515.18
7.0.220.0000.01515.38
7.0.210.0040.00815.34
7.0.200.0110.00316.14
7.0.190.0050.01315.76
7.0.180.0020.01115.78
7.0.170.0030.01115.63
7.0.160.0050.00915.92
7.0.150.0040.00915.97
7.0.140.0070.00515.75
7.0.130.0060.00815.98
7.0.120.0050.00916.00
7.0.110.0050.01015.79
7.0.100.0050.00815.75
7.0.90.0030.01315.87
7.0.80.0030.00916.00
7.0.70.0070.00515.80
7.0.60.0040.00615.85
7.0.50.0060.00816.03
7.0.40.0030.00814.16
7.0.30.0080.00314.14
7.0.20.0070.00914.17
7.0.10.0020.01514.20
7.0.00.0030.01214.10
5.6.400.0080.00814.34
5.6.390.0030.01213.92
5.6.380.0090.00614.57
5.6.370.0120.00014.25
5.6.360.0000.01114.46
5.6.350.0000.01814.39
5.6.340.0070.00714.18
5.6.330.0060.00914.52
5.6.320.0070.00713.91
5.6.310.0100.00714.52
5.6.300.0080.04417.62
5.6.290.0050.04317.51
5.6.280.0050.02517.71
5.6.270.0020.04117.58
5.6.260.0050.02817.52
5.6.250.0020.03117.70
5.6.240.0030.02717.53
5.6.230.0110.02817.56
5.6.220.0050.02917.61
5.6.210.0050.04617.61
5.6.200.0100.02217.63
5.6.190.0080.02617.66
5.6.180.0050.02417.61
5.6.170.0050.03317.59
5.6.160.0030.04717.65
5.6.150.0060.02517.56
5.6.140.0050.02417.38
5.6.130.0110.02417.64
5.6.120.0100.02317.49
5.6.110.0040.03417.62
5.6.100.0100.02517.61
5.6.90.0030.03017.59
5.6.80.0020.03017.26
5.6.70.0060.03017.17
5.6.60.0080.02417.17
5.6.50.0130.02517.34
5.6.40.0020.02917.14
5.6.30.0090.02117.21
5.6.20.0050.02517.25
5.6.10.0000.03217.33
5.6.00.0100.02517.29
5.5.380.0030.08217.46
5.5.370.0030.08717.58
5.5.360.0000.04517.48
5.5.350.0000.04817.47
5.5.340.0000.06118.17
5.5.330.0030.04118.14
5.5.320.0030.04717.89
5.5.310.0160.06218.16
5.5.300.0030.07417.88
5.5.290.0000.05018.20
5.5.280.0090.03818.08
5.5.270.0040.04618.26
5.5.260.0060.04217.98
5.5.250.0000.05417.66
5.5.240.0090.03417.26
5.5.230.0100.04217.64
5.5.220.0070.03917.25
5.5.210.0030.04717.52
5.5.200.0030.04017.53
5.5.190.0030.05817.54
5.5.180.0000.04517.49
5.5.160.0000.05217.23
5.5.150.0100.03717.52
5.5.140.0070.03717.51
5.5.130.0070.04317.43
5.5.120.0060.03817.49
5.5.110.0030.04417.42
5.5.100.0030.04017.30
5.5.90.0030.03917.41
5.5.80.0030.03917.32
5.5.70.0000.05117.41
5.5.60.0000.04217.41
5.5.50.0060.03817.50
5.5.40.0070.06917.43
5.5.30.0070.05617.31
5.5.20.0030.04917.40
5.5.10.0070.04017.43
5.5.00.0000.04617.31
5.4.450.0100.04319.54
5.4.440.0160.04819.48
5.4.430.0130.04319.54
5.4.420.0070.04719.60
5.4.410.0070.04119.48
5.4.400.0030.04019.06
5.4.390.0070.04319.31
5.4.380.0060.03918.99
5.4.370.0070.04619.23
5.4.360.0030.04519.12
5.4.350.0100.04919.20
5.4.340.0070.04119.06
5.4.320.0030.04819.21
5.4.310.0100.03819.06
5.4.300.0030.04219.14
5.4.290.0100.03619.21
5.4.280.0000.04718.97
5.4.270.0030.04518.97
5.4.260.0070.03719.05
5.4.250.0000.04719.19
5.4.240.0030.06419.04
5.4.230.0060.03919.16
5.4.220.0070.03819.13
5.4.210.0000.04619.20
5.4.200.0070.05319.27
5.4.190.0170.06718.96
5.4.180.0070.04719.28
5.4.170.0130.03019.13
5.4.160.0060.04519.18
5.4.150.0030.04019.18
5.4.140.0100.03616.74
5.4.130.0070.04116.79
5.4.120.0000.05516.87
5.4.110.0120.03416.84
5.4.100.0070.04116.87
5.4.90.0030.03916.70
5.4.80.0030.04416.53
5.4.70.0030.06016.75
5.4.60.0000.04016.78
5.4.50.0030.04416.80
5.4.40.0090.03416.61
5.4.30.0170.06816.78
5.4.20.0030.04416.78
5.4.10.0100.03516.51
5.4.00.0030.05716.28
5.3.290.0070.03914.92
5.3.280.0030.04714.89
5.3.270.0030.04314.80
5.3.260.0060.03814.78
5.3.250.0060.03514.85
5.3.240.0030.06414.81
5.3.230.0000.07514.78
5.3.220.0030.04214.78
5.3.210.0000.04714.82
5.3.200.0060.03814.78
5.3.190.0000.04414.91
5.3.180.0000.04514.86
5.3.170.0030.03814.90
5.3.160.0100.06214.86
5.3.150.0030.03714.78
5.3.140.0070.03614.78
5.3.130.0100.04714.78
5.3.120.0030.05214.78
5.3.110.0100.03214.84
5.3.100.0000.04814.78
5.3.90.0030.06714.78
5.3.80.0070.07114.78
5.3.70.0060.06114.78
5.3.60.0070.05914.78
5.3.50.0070.04114.78
5.3.40.0060.03514.78
5.3.30.0000.04114.78
5.3.20.0000.03914.78
5.3.10.0070.03914.78
5.3.00.0040.03514.78
5.2.170.0030.02914.78
5.2.160.0000.03714.78
5.2.150.0040.02914.78
5.2.140.0000.04214.78
5.2.130.0070.05814.78
5.2.120.0060.05214.78
5.2.110.0000.03114.78
5.2.100.0030.02914.78
5.2.90.0060.03514.78
5.2.80.0000.03714.78
5.2.70.0000.03314.78
5.2.60.0030.02914.78
5.2.50.0100.04714.78
5.2.40.0110.02014.78
5.2.30.0000.05114.78
5.2.20.0000.04314.78
5.2.10.0030.03214.78
5.2.00.0000.03314.78
5.1.60.0070.02314.78
5.1.50.0070.02014.78
5.1.40.0130.03214.78
5.1.30.0000.06514.78
5.1.20.0000.05214.78
5.1.10.0060.02314.78
5.1.00.0000.03814.78
5.0.50.0030.04814.78
5.0.40.0030.02714.78
5.0.30.0040.03514.78
5.0.20.0040.01914.78
5.0.10.0000.02514.78
5.0.00.0000.05514.78
4.4.90.0060.01214.78
4.4.80.0000.02014.78
4.4.70.0030.01614.78
4.4.60.0000.01714.78
4.4.50.0040.01514.78
4.4.40.0030.02314.78
4.4.30.0000.02814.78
4.4.20.0000.03114.78
4.4.10.0090.02514.78
4.4.00.0030.02414.78
4.3.110.0000.01914.78
4.3.100.0040.01514.78
4.3.90.0040.01314.78
4.3.80.0030.02514.78
4.3.70.0030.01914.78
4.3.60.0000.01614.78
4.3.50.0000.01714.78
4.3.40.0040.04814.78
4.3.30.0000.02314.78
4.3.20.0000.01814.78
4.3.10.0030.02014.78
4.3.00.0030.04314.78