3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foobar = 'string'; $length = strlen($foobar); var_dump(strpos('blarstring', $foobar, -$length));

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.40.0120.00318.72
8.3.30.0100.00318.59
8.3.20.0000.00720.07
8.3.10.0040.00423.51
8.3.00.0050.00519.38
8.2.170.0170.00022.96
8.2.160.0100.01022.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00617.63
8.2.110.0000.01222.16
8.2.100.0040.00717.93
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0040.00417.78
8.2.50.0030.00518.07
8.2.40.0070.00019.34
8.2.30.0040.00420.52
8.2.20.0040.00417.57
8.2.10.0040.00418.11
8.2.00.0070.00018.09
8.1.270.0040.00423.93
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.71
8.1.230.0030.00917.76
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00917.00
8.1.180.0040.00418.10
8.1.170.0040.00418.81
8.1.160.0040.00421.85
8.1.150.0000.00718.72
8.1.140.0000.00819.51
8.1.130.0030.00317.50
8.1.120.0040.00417.38
8.1.110.0050.00317.30
8.1.100.0040.00417.38
8.1.90.0070.00017.24
8.1.80.0040.00417.34
8.1.70.0000.00817.36
8.1.60.0030.00517.35
8.1.50.0040.00417.47
8.1.40.0050.00317.36
8.1.30.0030.00517.58
8.1.20.0080.00017.54
8.1.10.0000.00817.51
8.1.00.0040.00417.37
8.0.300.0050.00318.77
8.0.290.0070.00016.75
8.0.280.0030.00318.32
8.0.270.0000.00717.18
8.0.260.0070.00017.25
8.0.250.0080.00016.85
8.0.240.0000.00816.95
8.0.230.0000.00716.75
8.0.220.0030.00316.77
8.0.210.0070.00016.75
8.0.200.0040.00416.81
8.0.190.0000.00916.89
8.0.180.0000.00716.82
8.0.170.0070.00016.72
8.0.160.0000.00716.72
8.0.150.0000.00716.73
8.0.140.0000.00716.68
8.0.130.0000.00613.24
8.0.120.0000.00716.82
8.0.110.0000.00716.84
8.0.100.0040.00416.84
8.0.90.0050.00216.77
8.0.80.0140.00716.77
8.0.70.0000.00716.71
8.0.60.0040.00416.66
8.0.50.0040.00416.87
8.0.30.0030.01216.87
8.0.20.0130.00717.40
8.0.10.0000.00716.84
8.0.00.0100.00716.62
7.4.330.0060.00015.08
7.4.320.0030.00316.45
7.4.300.0030.00316.50
7.4.290.0000.00716.38
7.4.280.0000.00716.47
7.4.270.0000.00716.48
7.4.260.0070.00316.41
7.4.250.0040.00416.40
7.4.240.0040.00416.41
7.4.230.0030.00316.47
7.4.220.0030.01416.39
7.4.210.0130.00616.64
7.4.200.0030.00316.33
7.4.160.0060.01016.20
7.4.150.0140.00417.40
7.4.140.0120.00717.86
7.4.130.0120.00716.46
7.4.120.0100.00916.43
7.4.110.0100.01016.45
7.4.100.0170.00416.36
7.4.90.0100.00616.48
7.4.80.0040.01419.39
7.4.70.0060.00916.36
7.4.60.0000.01616.28
7.4.50.0080.00016.39
7.4.40.0150.00016.27
7.4.30.0050.01316.32
7.4.00.0070.00714.83
7.3.330.0020.00213.00
7.3.320.0000.00513.24
7.3.310.0070.00016.25
7.3.300.0040.00416.16
7.3.290.0070.00816.26
7.3.280.0100.00916.28
7.3.270.0100.00617.40
7.3.260.0090.00916.53
7.3.250.0050.01316.24
7.3.240.0080.00816.29
7.3.230.0040.01316.43
7.3.210.0000.01616.58
7.3.200.0060.01216.33
7.3.190.0130.00716.31
7.3.180.0100.00716.41
7.3.170.0100.01016.27
7.3.160.0120.00316.58
7.3.120.0100.00714.92
7.3.110.0060.00914.82
7.3.100.0030.01414.68
7.3.90.0030.00714.84
7.3.80.0040.01114.79
7.3.70.0060.00314.71
7.3.60.0070.00714.77
7.3.50.0000.01114.85
7.3.40.0030.01414.88
7.3.30.0040.00714.48
7.3.20.0000.00816.53
7.3.10.0080.00416.60
7.3.00.0040.01116.45
7.2.330.0090.00916.29
7.2.320.0100.01016.62
7.2.310.0070.01016.54
7.2.300.0110.00716.39
7.2.290.0110.01116.56
7.2.240.0100.00614.86
7.2.230.0060.01214.88
7.2.220.0090.00615.02
7.2.210.0080.00614.98
7.2.200.0090.00614.83
7.2.190.0070.00714.99
7.2.180.0000.01514.77
7.2.170.0080.00414.74
7.2.160.0030.01414.79
7.2.150.0000.01716.89
7.2.140.0040.00416.78
7.2.130.0080.00416.59
7.2.120.0000.01816.86
7.2.110.0000.01316.89
7.2.100.0060.01216.89
7.2.90.0090.00616.73
7.2.80.0070.00716.79
7.2.70.0070.00717.00
7.2.60.0050.00816.73
7.2.50.0040.01416.67
7.2.40.0090.00616.81
7.2.30.0110.00016.84
7.2.20.0090.00616.54
7.2.10.0000.01516.70
7.2.00.0010.01317.97
7.1.330.0040.01215.86
7.1.320.0030.01415.82
7.1.310.0000.01115.95
7.1.300.0000.01615.71
7.1.290.0040.00715.79
7.1.280.0040.00815.44
7.1.270.0090.00315.95
7.1.260.0070.00715.75
7.1.250.0090.00615.94
7.1.200.0040.00415.87
7.1.100.0040.01117.84
7.1.70.0000.00717.21
7.1.60.0140.01019.43
7.1.50.0060.01616.88
7.1.00.0100.07022.28
7.0.200.0100.01014.82
7.0.60.0070.08719.93
7.0.50.0100.07717.80
7.0.40.0030.04719.90
7.0.30.0230.05020.23
7.0.20.0400.06720.09
7.0.10.0100.09020.15
7.0.00.0100.08020.16
5.6.280.0000.03320.86
5.6.210.0070.07020.74
5.6.200.0070.06718.13
5.6.190.0030.09020.56
5.6.180.0370.04320.57
5.6.170.0230.05720.51
5.6.160.0030.04020.36
5.6.150.0170.07718.21
5.6.140.0000.04718.20
5.6.130.0070.08318.18
5.6.120.0070.06321.05
5.6.110.0130.08020.98
5.6.100.0130.07321.02
5.6.90.0130.08321.10
5.6.80.0070.07720.37
5.5.350.0330.04320.37
5.5.340.0000.04318.02
5.5.330.0030.05720.23
5.5.320.0270.08020.14
5.5.310.0300.06020.32
5.5.300.0130.05717.89
5.5.290.0070.06717.94
5.5.280.0100.06320.76
5.5.270.0030.05720.67
5.5.260.0170.06320.75
5.5.250.0070.09020.78
5.5.240.0070.06720.36
5.4.450.0300.07319.09
5.4.440.0300.07719.25
5.4.430.0170.07319.27
5.4.420.0370.06319.54
5.4.410.0470.06319.49
5.4.400.0270.07719.12
5.4.390.0670.06319.28
5.4.380.0170.07319.13
5.4.370.0270.04719.13
5.4.360.0200.07319.13
5.4.350.0500.05019.13
5.4.340.0400.05719.14
5.4.320.0700.07019.08
5.4.310.0570.05719.22
5.4.300.0570.05718.91
5.4.290.0400.04719.19
5.4.280.0170.06018.80
5.4.270.0370.04319.31
5.4.260.0530.05319.27
5.4.250.0370.06719.18
5.4.240.0570.06319.10
5.4.230.0770.06318.94
5.4.220.0700.06318.91
5.4.210.0130.07719.18
5.4.200.0200.07019.11
5.4.190.0230.06319.34
5.4.180.0370.05319.21
5.4.170.0430.06019.29
5.4.160.0600.05319.29
5.4.150.0570.06318.97
5.4.140.0700.05316.23
5.4.130.0430.06016.40
5.4.120.0530.06716.17
5.4.110.0370.08316.46
5.4.100.0270.06016.50
5.4.90.0370.06016.18
5.4.80.0630.04716.20
5.4.70.0400.04716.45
5.4.60.0330.06016.51
5.4.50.0470.06016.45
5.4.40.0230.05016.44
5.4.30.0100.06716.26
5.4.20.0200.04716.51
5.4.10.0300.06716.36
5.4.00.0170.05715.90

preferences:
40.68 ms | 400 KiB | 5 Q