3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[0] = "abc;;;;def;ghi;"; $b = mb_strstr($a[0],';'); //$b = ltrim($b,';'); $sss = substr( $b , 1, strlen($b)-1 ); echo $a[0]." "; echo $sss; ?>

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.0110.00416.38
8.3.50.0130.00321.95
8.3.40.0100.00618.84
8.3.30.0070.00719.13
8.3.20.0000.00720.13
8.3.10.0040.00423.53
8.3.00.0090.00019.24
8.2.180.0070.00718.41
8.2.170.0080.01222.96
8.2.160.0080.00820.47
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0160.00326.16
8.2.120.0040.00422.13
8.2.110.0060.00322.25
8.2.100.0120.00017.91
8.2.90.0000.00819.09
8.2.80.0080.00018.13
8.2.70.0080.00017.75
8.2.60.0080.00018.03
8.2.50.0030.00518.07
8.2.40.0040.00418.22
8.2.30.0000.00718.19
8.2.20.0060.00317.79
8.2.10.0050.00318.06
8.2.00.0040.00817.72
8.1.280.0100.00325.92
8.1.270.0040.00422.06
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.82
8.1.230.0070.00418.87
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0040.00417.53
8.1.180.0030.00618.10
8.1.170.0030.00618.64
8.1.160.0050.00221.93
8.1.150.0080.00318.54
8.1.140.0000.00717.43
8.1.130.0000.00717.82
8.1.120.0050.00317.52
8.1.110.0080.00017.40
8.1.100.0030.00817.48
8.1.90.0050.00217.46
8.1.80.0040.00417.36
8.1.70.0030.00617.39
8.1.60.0040.00817.63
8.1.50.0040.00417.58
8.1.40.0080.00017.47
8.1.30.0040.00417.58
8.1.20.0050.00217.68
8.1.10.0000.00917.64
8.1.00.0060.00317.47
8.0.300.0000.00718.77
8.0.290.0040.00417.16
8.0.280.0030.00318.47
8.0.270.0000.00717.31
8.0.260.0070.00017.32
8.0.250.0030.00317.03
8.0.240.0060.00317.00
8.0.230.0000.00717.00
8.0.220.0030.00316.97
8.0.210.0000.00716.96
8.0.200.0000.00616.97
8.0.190.0040.00416.99
8.0.180.0000.00716.97
8.0.170.0000.00816.94
8.0.160.0000.00716.95
8.0.150.0000.00716.90
8.0.140.0000.00916.92
8.0.130.0000.00613.36
8.0.120.0050.00316.85
8.0.110.0040.00416.93
8.0.100.0000.00716.97
8.0.90.0030.00516.84
8.0.80.0100.01016.96
8.0.70.0030.00616.93
8.0.60.0000.00816.88
8.0.50.0000.00716.80
8.0.30.0100.00917.11
8.0.20.0160.00717.40
8.0.10.0000.00716.80
8.0.00.0130.00816.71
7.4.330.0000.00515.00
7.4.320.0030.00316.56
7.4.300.0030.00316.43
7.4.290.0070.00016.35
7.4.280.0070.00416.34
7.4.270.0000.00816.50
7.4.260.0000.00716.41
7.4.250.0040.00416.39
7.4.240.0060.00216.54
7.4.230.0030.00316.27
7.4.220.0030.01416.53
7.4.210.0080.00716.53
7.4.200.0070.00016.41
7.4.190.0000.00716.57
7.4.160.0090.00916.42
7.4.150.0070.01017.40
7.4.140.0050.01217.86
7.4.130.0130.00616.56
7.4.120.0140.00616.46
7.4.110.0130.00316.38
7.4.100.0110.00716.51
7.4.90.0040.01216.44
7.4.80.0100.01119.39
7.4.70.0110.00716.43
7.4.60.0170.00016.46
7.4.50.0000.00816.36
7.4.40.0030.01322.77
7.4.30.0040.01416.39
7.4.00.0040.00714.82
7.3.330.0050.00013.07
7.3.320.0030.00313.05
7.3.310.0050.00216.28
7.3.300.0000.00716.16
7.3.290.0030.01616.28
7.3.280.0130.00516.34
7.3.270.0100.00717.40
7.3.260.0070.01116.48
7.3.250.0110.00816.61
7.3.240.0100.00716.57
7.3.230.0090.00616.39
7.3.210.0140.00316.58
7.3.200.0200.00319.39
7.3.190.0070.01116.64
7.3.180.0080.00816.54
7.3.170.0120.00616.36
7.3.160.0100.01316.54
7.3.120.0100.00314.54
7.3.10.0090.00616.57
7.3.00.0060.00916.84
7.2.330.0120.01016.85
7.2.320.0100.00616.64
7.2.310.0090.01016.54
7.2.300.0070.01016.69
7.2.290.0100.00716.81
7.2.130.0100.00316.90
7.2.120.0060.00617.03
7.2.110.0090.00616.89
7.2.100.0030.00916.71
7.2.90.0070.00716.82
7.2.80.0050.00616.86
7.2.70.0110.00016.77
7.2.60.0070.00716.91
7.2.50.0080.00316.90
7.2.40.0030.00816.93
7.2.30.0070.00716.71
7.2.20.0060.00917.04
7.2.10.0070.00717.04
7.2.00.0090.00616.88
7.1.250.0030.00715.82
7.1.200.0000.00815.70
7.1.70.0050.01416.88
7.1.60.0040.01819.46
7.1.50.0100.00634.91
7.1.00.0030.07722.40
7.0.200.0270.00314.71
7.0.140.0030.07722.11
7.0.60.0070.04019.86
7.0.50.0130.07017.81
7.0.40.0030.07720.23
7.0.30.0230.05720.09
7.0.20.0330.04320.03
7.0.10.0100.04020.16
7.0.00.0170.07020.12
5.6.280.0100.06720.77
5.6.210.0030.09020.60
5.6.200.0170.05018.12
5.6.190.0100.08020.67
5.6.180.0470.07020.60
5.6.170.0330.06020.46
5.6.160.0100.07320.61
5.6.150.0070.07718.17
5.6.140.0070.08018.18
5.6.130.0070.08018.09
5.6.120.0030.09021.14
5.6.110.0070.08321.13
5.6.100.0070.03721.02
5.6.90.0030.04321.07
5.6.80.0070.05320.43
5.5.350.4200.04320.31
5.5.340.0030.04317.95
5.5.330.0130.07720.43
5.5.320.2670.04720.30
5.5.310.0300.08320.27
5.5.300.0030.07717.88
5.5.290.0030.05717.94
5.5.280.0130.07720.77
5.5.270.0070.08720.88
5.5.260.0070.08320.63
5.5.250.0070.04020.61
5.5.240.0000.03320.18
5.4.450.0400.06019.68
5.4.440.0700.05019.13
5.4.430.0130.05019.29
5.4.420.0070.05719.51
5.4.410.0030.06019.35
5.4.400.0130.05019.38
5.4.390.0100.05318.95
5.4.380.0370.04318.70
5.4.370.0270.08018.58
5.4.360.0300.08018.61
5.4.350.0300.05718.68
5.4.340.0400.05018.72
5.4.320.0070.03912.45
5.4.310.0060.04312.45
5.4.300.0040.04212.45
5.4.290.0050.04212.43
5.4.280.0050.04212.33
5.4.270.0090.03412.33
5.4.260.0060.04212.33
5.4.250.0120.03612.33
5.4.240.0100.03912.33
5.4.230.0150.05112.32
5.4.220.0060.04112.32
5.4.210.0060.03812.32
5.4.200.0100.03612.32
5.4.190.0070.04212.32
5.4.180.0060.05112.32
5.4.170.0050.05012.33
5.4.160.0070.04712.32
5.4.150.0110.04112.32
5.4.140.0060.04012.00
5.4.130.0050.04111.99
5.4.120.0080.04611.95
5.4.110.0080.03911.95
5.4.100.0080.03511.95
5.4.90.0090.03711.95
5.4.80.0050.04211.95
5.4.70.0110.03511.95
5.4.60.0070.04311.94
5.4.50.0090.05311.95
5.4.40.0070.05011.93
5.4.30.0100.04511.93
5.4.20.0090.05311.93
5.4.10.0070.04111.93
5.4.00.0090.03711.41
5.3.290.0050.03912.80
5.3.280.0080.04312.71
5.3.270.0070.05912.73
5.3.260.0080.03812.72
5.3.250.0090.03512.71
5.3.240.0040.04312.72
5.3.230.0040.03912.71
5.3.220.0080.04412.68
5.3.210.0070.03812.68
5.3.200.0050.03812.68
5.3.190.0080.05012.68
5.3.180.0070.04512.67
5.3.170.0070.03912.66
5.3.160.0060.03712.67
5.3.150.0070.05312.67
5.3.140.0060.04112.66
5.3.130.0080.04212.66
5.3.120.0080.04612.66
5.3.110.0100.03912.66
5.3.100.0050.04112.12
5.3.90.0060.04212.09
5.3.80.0060.05312.07
5.3.70.0050.05512.07
5.3.60.0090.03612.06
5.3.50.0030.03912.00
5.3.40.0080.03412.00
5.3.30.0090.03411.94
5.3.20.0100.03511.72
5.3.10.0080.04511.69
5.3.00.0040.03911.69
5.2.170.0060.0319.18
5.2.160.0030.0319.18
5.2.150.0150.0679.17
5.2.140.0100.0449.18
5.2.130.0060.0349.14
5.2.120.0080.0379.14
5.2.110.0060.0289.14
5.2.100.0060.0329.14
5.2.90.0050.0529.14
5.2.80.0050.0339.14
5.2.70.0070.0319.13
5.2.60.0030.0349.09
5.2.50.0080.0269.05
5.2.40.0070.0279.04
5.2.30.0040.0319.01
5.2.20.0060.0289.00
5.2.10.0040.0298.92
5.2.00.0050.0298.77
5.1.60.0020.0278.07
5.1.50.0040.0318.06
5.1.40.0050.0358.05
5.1.30.0100.0348.40
5.1.20.0080.0368.41
5.1.10.0050.0378.14
5.1.00.0020.0418.14
5.0.50.0040.0286.62
5.0.40.0020.0306.48
5.0.30.0050.0506.29
5.0.20.0050.0286.26
5.0.10.0060.0296.24
5.0.00.0050.0396.23
4.4.90.0030.0224.78
4.4.80.0050.0224.75
4.4.70.0040.0234.75
4.4.60.0030.0224.75
4.4.50.0030.0244.77
4.4.40.0000.0384.70
4.4.30.0020.0234.76
4.4.20.0040.0384.84
4.4.10.0020.0364.85
4.4.00.0040.0304.76
4.3.110.0050.0224.67
4.3.100.0070.0284.66
4.3.90.0030.0334.63
4.3.80.0060.0324.58
4.3.70.0050.0194.63
4.3.60.0080.0254.63
4.3.50.0050.0214.63
4.3.40.0030.0324.54
4.3.30.0030.0173.29
4.3.20.0030.0183.26
4.3.10.0040.0163.21
4.3.00.0130.0208.16

preferences:
35.25 ms | 401 KiB | 5 Q