3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'asdfasfawefaewfhttps://asdfasdf.com/'; var_dump(substr(0, stpos($foo, 'https')));

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.00316.73
8.3.50.0100.01121.98
8.3.40.0090.00618.84
8.3.30.0150.00318.67
8.3.20.0070.00020.22
8.3.10.0050.00223.65
8.3.00.0060.00319.38
8.2.180.0100.00616.75
8.2.170.0150.00322.96
8.2.160.0130.00020.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00317.50
8.2.120.0000.00726.35
8.2.110.0040.00822.26
8.2.100.0090.00317.80
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0050.00317.91
8.2.50.0040.00418.07
8.2.40.0050.00319.41
8.2.30.0050.00220.50
8.2.20.0030.00517.75
8.2.10.0040.00417.92
8.2.00.0030.00617.95
8.1.280.0150.00625.92
8.1.270.0080.00023.71
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0000.00920.82
8.1.230.0140.00017.43
8.1.220.0000.00817.76
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.57
8.1.180.0050.00218.10
8.1.170.0030.00518.59
8.1.160.0050.00321.81
8.1.150.0070.00018.82
8.1.140.0050.00319.53
8.1.130.0040.00417.63
8.1.120.0030.00317.35
8.1.110.0070.00017.36
8.1.100.0000.00817.39
8.1.90.0000.00717.44
8.1.80.0040.00417.28
8.1.70.0000.00717.33
8.1.60.0070.00017.45
8.1.50.0030.00517.50
8.1.40.0030.00517.43
8.1.30.0060.00317.49
8.1.20.0000.00817.52
8.1.10.0040.00417.54
8.1.00.0080.00417.49
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.28
8.0.270.0040.00417.24
8.0.260.0030.00317.19
8.0.250.0060.00316.88
8.0.240.0000.00816.91
8.0.230.0050.00316.96
8.0.220.0080.00016.84
8.0.210.0030.00416.92
8.0.200.0000.00617.00
8.0.190.0000.00716.83
8.0.180.0000.00716.88
8.0.170.0020.00516.84
8.0.160.0000.00716.91
8.0.150.0050.00316.87
8.0.140.0040.00416.82
8.0.130.0000.00613.37
8.0.120.0040.00416.85
8.0.110.0000.00816.89
8.0.100.0000.00716.82
8.0.90.0070.00016.78
8.0.80.0030.01216.89
8.0.70.0040.00416.68
8.0.60.0070.00016.83
8.0.50.0040.00416.92
8.0.30.0080.00817.03
8.0.20.0110.00917.40
8.0.10.0100.00016.94
8.0.00.0070.01016.67
7.4.330.0050.00016.75
7.4.320.0030.00316.45
7.4.300.0000.00616.59
7.4.290.0030.00316.54
7.4.280.0000.00816.59
7.4.270.0000.00616.61
7.4.260.0090.00016.52
7.4.250.0000.00816.58
7.4.240.0040.00316.56
7.4.230.0060.00016.54
7.4.220.0110.01716.52
7.4.210.0130.00316.53
7.4.200.0050.00316.66
7.4.160.0120.00416.39
7.4.150.0130.00317.40
7.4.140.0120.00517.86
7.4.130.0140.00616.50
7.4.120.0080.01116.56
7.4.110.0180.00016.46
7.4.100.0140.00316.45
7.4.90.0100.00716.38
7.4.80.0090.00919.39
7.4.70.0090.00616.42
7.4.60.0120.00316.47
7.4.50.0060.00916.56
7.4.40.0160.00616.42
7.4.30.0030.01816.48
7.4.10.0070.00715.06
7.4.00.0030.01114.90
7.3.330.0000.00613.00
7.3.320.0000.00513.13
7.3.310.0070.00016.11
7.3.300.0030.00316.10
7.3.290.0080.00716.23
7.3.280.0090.00816.24
7.3.270.0120.00917.40
7.3.260.0100.00616.46
7.3.250.0090.01016.44
7.3.240.0090.00816.22
7.3.230.0210.00016.48
7.3.210.0170.00016.57
7.3.200.0160.00316.17
7.3.190.0130.00316.30
7.3.180.0080.00816.52
7.3.170.0180.00516.27
7.3.160.0090.00616.48
7.3.130.0030.01214.82
7.3.120.0050.01214.83
7.3.110.0080.00914.42
7.3.100.0070.00614.86
7.3.90.0030.01314.55
7.3.80.0040.00514.80
7.3.70.0080.00514.82
7.3.60.0090.00414.82
7.3.50.0030.00814.72
7.3.40.0020.01014.66
7.3.30.0050.00614.60
7.3.20.0030.00916.66
7.3.10.0050.00516.62
7.3.00.0000.01416.61
7.2.330.0040.01416.44
7.2.320.0090.01716.50
7.2.310.0110.00616.58
7.2.300.0070.01716.54
7.2.290.0110.00616.27
7.2.260.0060.01215.04
7.2.250.0070.01115.00
7.2.240.0080.00814.86
7.2.230.0080.00914.92
7.2.220.0110.00614.77
7.2.210.0060.00614.82
7.2.200.0030.00814.85
7.2.190.0050.00814.97
7.2.180.0090.00314.89
7.2.170.0050.00714.74
7.2.160.0080.00415.02
7.2.150.0060.00616.94
7.2.140.0000.01516.80
7.2.130.0070.00716.63
7.2.120.0080.00016.75
7.2.110.0040.00716.55
7.2.100.0060.00616.88
7.2.90.0060.01216.94
7.2.80.0080.00816.63
7.2.70.0060.00916.95
7.2.60.0050.00816.55
7.2.50.0040.01116.90
7.2.40.0040.00816.60
7.2.30.0070.00716.87
7.2.20.0130.00316.69
7.2.10.0040.01116.56
7.2.00.0060.00717.99
7.1.330.0060.00815.53
7.1.320.0070.01215.59
7.1.310.0060.00715.56
7.1.300.0090.00415.61
7.1.290.0070.00715.39
7.1.280.0070.00615.59
7.1.270.0050.00615.38
7.1.260.0050.00715.54
7.1.250.0060.00615.69
7.1.240.0080.00415.41
7.1.230.0000.01515.71
7.1.220.0130.00315.61
7.1.210.0130.00315.68
7.1.200.0080.00515.58
7.1.190.0110.00415.55
7.1.180.0090.00015.78
7.1.170.0070.01015.68
7.1.160.0030.01015.74
7.1.150.0000.01115.45
7.1.140.0090.00015.39
7.1.130.0000.00915.57
7.1.120.0110.00315.66
7.1.110.0000.01015.68
7.1.100.0100.00516.67
7.1.90.0090.00615.61
7.1.80.0070.00715.73
7.1.70.0050.00816.23
7.1.60.0090.00617.48
7.1.50.0110.00816.12
7.1.40.0070.00715.52
7.1.30.0000.01415.41
7.1.20.0090.00015.71
7.1.10.0000.00815.74
7.1.00.0080.03919.04
7.0.330.0090.00315.21
7.0.320.0110.00415.29
7.0.310.0060.00315.25
7.0.300.0060.00615.33
7.0.290.0070.00315.26
7.0.280.0030.00615.05
7.0.270.0060.00615.38
7.0.260.0000.01015.17
7.0.250.0030.00615.03
7.0.240.0060.00615.12
7.0.230.0040.01115.22
7.0.220.0000.00815.43
7.0.210.0040.00715.10
7.0.200.0030.01216.04
7.0.190.0060.00615.22
7.0.180.0030.01315.19
7.0.170.0040.01115.11
7.0.160.0070.00415.34
7.0.150.0070.00715.52
7.0.140.0110.00015.24
7.0.130.0000.01115.40
7.0.120.0090.00315.41
7.0.110.0090.00315.16
7.0.100.0040.00415.32
7.0.90.0080.00415.43
7.0.80.0000.01115.17
7.0.70.0070.00715.16
7.0.60.0060.02517.50
7.0.50.0020.03016.62
7.0.40.0070.03516.78
7.0.30.0150.02916.81
7.0.20.0210.04216.76
7.0.10.0100.02316.69
7.0.00.0070.04716.63
5.6.400.0080.00814.20
5.6.390.0000.00813.85
5.6.380.0060.00614.16
5.6.370.0050.00514.37
5.6.360.0030.00614.26
5.6.350.0040.00714.14
5.6.340.0100.00314.18
5.6.330.0060.00914.13
5.6.320.0030.00914.09
5.6.310.0070.00714.32
5.6.300.0070.00714.46
5.6.290.0050.00514.34
5.6.280.0070.01817.48
5.6.270.0060.00614.05
5.6.260.0040.00413.93
5.6.250.0040.00713.98
5.6.240.0080.00814.47
5.6.230.0070.00714.32
5.6.220.0040.00414.30
5.6.210.0050.02517.26
5.6.200.0060.02516.14
5.6.190.0030.04517.31
5.6.180.0280.02617.06
5.6.170.0180.04317.35
5.6.160.0120.03017.23
5.6.150.0110.03316.14
5.6.140.0050.04516.14
5.6.130.0030.03116.07
5.6.120.0050.04417.57
5.6.110.0050.04217.64
5.6.100.0060.04717.59
5.6.90.0050.02917.70
5.6.80.0050.04517.23
5.6.70.0070.00713.96
5.6.60.0040.00714.37
5.6.50.0070.01113.82
5.6.40.0030.01014.00
5.6.30.0090.00614.09
5.6.20.0070.01014.03
5.6.10.0030.00613.85
5.6.00.0070.00714.03
5.5.380.0070.00714.20
5.5.370.0070.00714.13
5.5.360.0000.01214.24
5.5.350.0130.04217.28
5.5.340.0090.03016.06
5.5.330.0050.03517.23
5.5.320.0050.03017.13
5.5.310.0150.04117.28
5.5.300.0000.03716.04
5.5.290.0100.04316.04
5.5.280.0050.04517.20
5.5.270.0080.04417.46
5.5.260.0090.03217.33
5.5.250.0040.04417.25
5.5.240.0100.04217.04
5.5.230.0030.01314.16
5.5.220.0070.00313.96
5.5.210.0040.01414.07
5.5.200.0040.00413.85
5.5.190.0000.01113.88
5.5.180.0080.00413.94
5.5.170.0070.00414.11
5.5.160.0130.00013.94
5.5.150.0000.01713.52
5.5.140.0030.00914.31
5.5.130.0070.00714.08
5.5.120.0040.00414.02
5.5.110.0070.00414.07
5.5.100.0100.00314.07
5.5.90.0030.01014.01
5.5.80.0030.01014.01
5.5.70.0120.00313.71
5.5.60.0060.00613.96
5.5.50.0030.00913.76
5.5.40.0100.00314.02
5.5.30.0060.00613.99
5.5.20.0060.00614.16
5.5.10.0030.00614.04
5.5.00.0110.00413.88

preferences:
48.34 ms | 401 KiB | 5 Q