3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '123|456|789|0'; $string = substr($string, 1, strpos($string, '|')); echo $string;

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.0030.01016.49
8.3.50.0110.00522.08
8.3.40.0110.00418.42
8.3.30.0070.00718.96
8.3.20.0070.00020.19
8.3.10.0050.00323.51
8.3.00.0060.00317.38
8.2.180.0070.01418.16
8.2.170.0080.00822.96
8.2.160.0080.00620.28
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00226.16
8.2.120.0000.00722.21
8.2.110.0060.00322.19
8.2.100.0070.00419.64
8.2.90.0030.00619.23
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0000.00818.03
8.2.50.0000.00818.07
8.2.40.0080.00019.88
8.2.30.0040.00418.16
8.2.20.0000.00817.55
8.2.10.0050.00318.04
8.2.00.0050.00517.67
8.1.280.0030.01425.92
8.1.270.0050.00323.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.83
8.1.230.0040.01119.08
8.1.220.0050.00317.79
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0040.00417.10
8.1.180.0070.00318.10
8.1.170.0000.00718.56
8.1.160.0030.00521.94
8.1.150.0050.00318.49
8.1.140.0070.00017.38
8.1.130.0030.00517.82
8.1.120.0040.00417.37
8.1.110.0040.00317.33
8.1.100.0040.00417.39
8.1.90.0000.00717.41
8.1.80.0000.00717.27
8.1.70.0030.00317.27
8.1.60.0060.00317.44
8.1.50.0040.00417.46
8.1.40.0000.00717.32
8.1.30.0040.00417.46
8.1.20.0000.00717.55
8.1.10.0080.00017.40
8.1.00.0040.00417.28
8.0.300.0000.00819.03
8.0.290.0000.00717.28
8.0.280.0030.00318.30
8.0.270.0070.00017.23
8.0.260.0030.00317.16
8.0.250.0030.00316.90
8.0.240.0000.00816.99
8.0.230.0000.00716.72
8.0.220.0030.00316.79
8.0.210.0040.00416.80
8.0.200.0030.00316.77
8.0.190.0040.00416.86
8.0.180.0000.00716.84
8.0.170.0030.00516.77
8.0.160.0000.00716.69
8.0.150.0000.00716.67
8.0.140.0070.00016.80
8.0.130.0000.00613.23
8.0.120.0000.00716.72
8.0.110.0040.00416.72
8.0.100.0080.00016.67
8.0.90.0040.00416.79
8.0.80.0090.01316.80
8.0.70.0050.00216.69
8.0.60.0040.00416.85
8.0.50.0000.00716.66
8.0.30.0110.01617.02
8.0.20.0080.01017.40
8.0.10.0080.00016.77
8.0.00.0090.01016.76
7.4.330.0050.00015.03
7.4.320.0000.00616.39
7.4.300.0000.00616.38
7.4.290.0040.00416.45
7.4.280.0000.00716.50
7.4.270.0030.00316.34
7.4.260.0040.00316.48
7.4.250.0050.00216.55
7.4.240.0040.00416.44
7.4.230.0030.00316.18
7.4.220.0070.01116.46
7.4.210.0060.00916.47
7.4.200.0030.00316.57
7.4.190.0030.00316.60
7.4.160.0070.01116.39
7.4.150.0060.01217.40
7.4.140.0050.01317.86
7.4.130.0090.00816.54
7.4.120.0070.01016.41
7.4.110.0120.00916.31
7.4.100.0080.00816.38
7.4.90.0150.00316.29
7.4.80.0030.01319.39
7.4.70.0140.00316.45
7.4.60.0090.01216.33
7.4.50.0000.00816.41
7.4.40.0000.01916.42
7.4.30.0000.01516.53
7.4.00.0060.00914.96
7.3.330.0050.00013.03
7.3.320.0030.00313.03
7.3.310.0070.00016.25
7.3.300.0020.00516.03
7.3.290.0070.01316.22
7.3.280.0060.00816.20
7.3.270.0130.00317.40
7.3.260.0090.00916.37
7.3.250.0090.00916.31
7.3.240.0090.00916.14
7.3.230.0090.00916.39
7.3.210.0100.00716.49
7.3.200.0060.01619.39
7.3.190.0090.01516.48
7.3.180.0040.01216.40
7.3.170.0060.00916.27
7.3.160.0060.01016.37
7.3.120.0070.01015.04
7.3.10.0060.01015.45
7.3.00.0110.01116.26
7.2.330.0030.01416.69
7.2.320.0120.00416.29
7.2.310.0060.01716.61
7.2.300.0070.01716.65
7.2.290.0090.00916.41
7.2.130.0150.00316.25
7.2.120.0100.01716.39
7.2.110.0110.01116.29
7.2.100.0160.00516.53
7.2.90.0280.00315.94
7.2.80.0180.00316.19
7.2.70.0270.00716.03
7.2.60.0100.01416.48
7.2.50.0260.00716.53
7.2.40.0250.00716.41
7.2.30.0170.01116.22
7.2.20.0110.01816.47
7.2.10.0210.00616.36
7.2.00.0160.01117.93
7.1.250.0200.00314.90
7.1.100.0030.00817.99
7.1.70.0070.00717.20
7.1.60.0110.01419.46
7.1.50.0070.01716.99
7.1.00.0100.07022.33
7.0.200.0040.00416.79
7.0.140.0030.07321.97
7.0.60.0100.08319.96
7.0.50.0070.04317.85
7.0.40.0100.08720.20
7.0.30.0370.06720.20
7.0.20.0300.04720.18
7.0.10.0030.08720.19
7.0.00.0100.08020.00
5.6.280.0070.07021.04
5.6.210.0070.08020.71
5.6.200.0100.06318.22
5.6.190.0000.07720.61
5.6.180.0300.07320.79
5.6.170.0370.04320.33
5.6.160.0000.04720.37
5.6.150.0100.08018.16
5.6.140.0070.06718.21
5.6.130.0130.07018.11
5.6.120.0030.07320.94
5.6.110.0030.09021.06
5.6.100.0070.08320.98
5.6.90.0130.07721.12
5.6.80.0130.07320.37
5.5.350.4030.04320.43
5.5.340.0030.03717.84
5.5.330.0170.07320.15
5.5.320.0200.05320.17
5.5.310.0270.04020.27
5.5.300.0170.07318.02
5.5.290.0130.08017.95
5.5.280.0170.07320.77
5.5.270.0130.07720.72
5.5.260.0030.08720.86
5.5.250.0170.05020.54
5.5.240.0030.06320.34
5.4.450.0170.07019.55
5.4.440.0200.05719.45
5.4.430.0200.05319.10
5.4.420.0200.06719.42
5.4.410.0170.05719.28
5.4.400.0230.06319.10
5.4.390.0130.06319.26
5.4.380.0930.05318.61
5.4.370.0900.05318.69
5.4.360.1000.05718.72
5.4.350.1070.05018.65
5.4.340.1230.05018.46
5.4.320.0050.03812.45
5.4.310.0080.03712.45
5.4.300.0050.04112.45
5.4.290.0110.03312.43
5.4.280.0050.03712.33
5.4.270.0110.03812.33
5.4.260.0110.03512.33
5.4.250.0070.04012.33
5.4.240.0080.03812.33
5.4.230.0050.04412.32
5.4.220.0100.03312.32
5.4.210.0060.03712.32
5.4.200.0080.03612.32
5.4.190.0070.03512.32
5.4.180.0140.04212.32
5.4.170.0130.04212.33
5.4.160.0090.04712.33
5.4.150.0120.03312.32
5.4.140.0090.03512.01
5.4.130.0110.04412.00
5.4.120.0100.05611.95
5.4.110.0070.05011.95
5.4.100.0100.04111.95
5.4.90.0090.05111.95
5.4.80.0080.05311.95
5.4.70.0030.04311.95
5.4.60.0060.03711.94
5.4.50.0160.06011.95
5.4.40.0170.07411.93
5.4.30.0120.04811.93
5.4.20.0070.05111.93
5.4.10.0070.05111.93
5.4.00.0100.04911.42
5.3.290.0050.03812.80
5.3.280.0090.04712.71
5.3.270.0080.05612.72
5.3.260.0120.05212.72
5.3.250.0050.05512.72
5.3.240.0070.05612.71
5.3.230.0060.04012.71
5.3.220.0050.03812.68
5.3.210.0080.03612.68
5.3.200.0070.03512.68
5.3.190.0070.03812.68
5.3.180.0080.03612.67
5.3.170.0110.03412.67
5.3.160.0060.03712.67
5.3.150.0040.03912.68
5.3.140.0090.03412.66
5.3.130.0060.04012.66
5.3.120.0050.04112.66
5.3.110.0050.04012.66
5.3.100.0040.03912.12
5.3.90.0070.03512.08
5.3.80.0090.03512.08
5.3.70.0050.03912.08
5.3.60.0070.03612.06
5.3.50.0050.03712.00
5.3.40.0110.03712.00
5.3.30.0070.03611.94
5.3.20.0050.03911.72
5.3.10.0070.03411.69
5.3.00.0060.04311.67
5.2.170.0080.0419.18
5.2.160.0080.0399.18
5.2.150.0090.0419.18
5.2.140.0040.0379.18
5.2.130.0050.0339.13
5.2.120.0030.0319.13
5.2.110.0040.0319.14
5.2.100.0080.0349.14
5.2.90.0090.0289.13
5.2.80.0060.0359.13
5.2.70.0050.0309.13
5.2.60.0070.0289.09
5.2.50.0060.0299.05
5.2.40.0080.0269.02
5.2.30.0060.0309.01
5.2.20.0100.0379.00
5.2.10.0050.0328.91
5.2.00.0060.0298.77
5.1.60.0030.0318.06
5.1.50.0050.0378.05
5.1.40.0080.0278.04
5.1.30.0080.0328.39
5.1.20.0030.0288.41
5.1.10.0060.0248.14
5.1.00.0030.0278.14
5.0.50.0060.0186.61
5.0.40.0060.0186.47
5.0.30.0030.0326.29
5.0.20.0070.0166.26
5.0.10.0020.0216.24
5.0.00.0040.0306.23
4.4.90.0010.0174.78
4.4.80.0010.0174.75
4.4.70.0040.0144.76
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0020.0254.71
4.4.30.0020.0154.76
4.4.20.0050.0144.85
4.4.10.0030.0154.85
4.4.00.0060.0224.76
4.3.110.0030.0154.66
4.3.100.0010.0164.66
4.3.90.0040.0134.64
4.3.80.0030.0264.59
4.3.70.0030.0154.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0020.0244.54
4.3.30.0000.0173.28
4.3.20.0040.0143.26
4.3.10.0010.0173.22
4.3.00.0070.0207.24

preferences:
47.01 ms | 401 KiB | 5 Q