3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = 'abc'; $findme = 'a'; $pos = strpos($mystring, $findme); // Note our use of ===. Simply == would not work as expected // because the position of 'a' was the 0th (first) character. if ($pos === false) { echo "The string '$findme' was not found in the string '$mystring'"; } else { echo "The string '$findme' was found in the string '$mystring'"; echo " and exists at position $pos"; }

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.70.0180.00016.58
8.3.60.0070.00718.18
8.3.50.0100.00721.26
8.3.40.0090.00618.64
8.3.30.0100.00320.23
8.3.20.0110.00722.51
8.3.10.0040.00421.09
8.3.00.0090.00725.18
8.2.180.0090.00916.38
8.2.170.0070.00722.96
8.2.160.0070.00720.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.99
8.2.110.0060.00320.43
8.2.100.0060.00617.78
8.2.90.0200.00117.68
8.2.80.0160.00417.74
8.2.70.0160.00517.65
8.2.60.0090.00417.54
8.2.50.0130.00717.74
8.2.40.0110.00818.89
8.2.30.0120.00518.35
8.2.20.0100.00717.48
8.2.10.0140.00417.62
8.2.00.0170.00217.51
8.1.280.0120.00925.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0100.00023.57
8.1.230.0040.00722.69
8.1.220.0160.00217.52
8.1.210.0150.00418.00
8.1.200.0140.00517.12
8.1.190.0140.00317.10
8.1.180.0130.00417.49
8.1.170.0120.00517.92
8.1.160.0110.00717.95
8.1.150.0140.00517.79
8.1.140.0110.00717.21
8.1.130.0110.00617.42
8.1.120.0130.00417.27
8.1.110.0150.00117.24
8.1.100.0120.00617.28
8.1.90.0110.00517.31
8.1.80.0100.00517.35
8.1.70.0110.00517.22
8.1.60.0150.00417.44
8.1.50.0120.00617.36
8.1.40.0120.00617.35
8.1.30.0100.00817.53
8.1.20.0140.00317.48
8.1.10.0120.00717.39
8.1.00.0160.00517.36
8.0.300.0150.00618.20
8.0.290.0130.00616.71
8.0.280.0130.00717.64
8.0.270.0170.00217.08
8.0.260.0140.00416.81
8.0.250.0120.00616.88
8.0.240.0140.00416.88
8.0.230.0140.00416.83
8.0.220.0120.00616.84
8.0.210.0100.00616.82
8.0.200.0110.00516.79
8.0.190.0090.00916.91
8.0.180.0110.00716.82
8.0.170.0120.00616.85
8.0.160.0130.00416.85
8.0.150.0060.00916.77
8.0.140.0140.00316.74
8.0.130.0120.00516.11
8.0.120.0110.00716.82
8.0.110.0110.00616.81
8.0.100.0150.00416.84
8.0.90.0140.00316.83
8.0.80.0140.00617.14
8.0.70.0110.00916.82
8.0.60.0120.00816.79
8.0.50.0130.00716.81
8.0.30.0150.00516.86
8.0.20.0120.00817.01
8.0.10.0140.00716.86
8.0.00.0100.00916.81
7.4.330.0130.00016.79
7.4.320.0110.00416.56
7.4.300.0090.00416.53
7.4.290.0130.00416.60
7.4.280.0120.00516.56
7.4.270.0090.00616.60
7.4.260.0160.00115.89
7.4.250.0150.00416.58
7.4.240.0120.00516.62
7.4.230.0130.00416.50
7.4.220.0140.00516.54
7.4.210.0070.00816.58
7.4.200.0130.00616.59
7.4.190.0130.00616.65
7.4.180.0120.00816.66
7.4.160.0130.00716.59
7.4.150.0140.00516.66
7.4.140.0130.00816.82
7.4.130.0130.00716.51
7.4.120.0150.00416.46
7.4.110.0110.00816.41
7.4.100.0120.00716.53
7.4.90.0130.00616.43
7.4.80.0120.00816.74
7.4.70.0110.00816.48
7.4.60.0120.00616.43
7.4.50.0080.00916.43
7.4.40.0130.00517.02
7.4.30.0100.00716.44
7.4.20.0080.01016.47
7.4.10.0090.00916.43
7.4.00.0100.00816.24
7.3.330.0090.00516.25
7.3.320.0120.00415.68
7.3.310.0100.00616.33
7.3.300.0110.00516.36
7.3.290.0120.00616.30
7.3.280.0120.00716.26
7.3.270.0140.00516.42
7.3.260.0110.01016.90
7.3.250.0150.00516.32
7.3.240.0130.00716.27
7.3.230.0120.00916.32
7.3.220.0120.00816.28
7.3.210.0120.00716.29
7.3.200.0120.00916.53
7.3.190.0100.00916.31
7.3.180.0120.00816.27
7.3.170.0140.00516.33
7.3.160.0130.00816.34
7.3.150.0130.00716.30
7.3.140.0120.00816.28
7.3.130.0110.00816.31
7.3.120.0110.00716.15
7.3.110.0130.00616.10
7.3.100.0120.00615.98
7.3.90.0110.00816.11
7.3.80.0120.00616.01
7.3.70.0120.00716.07
7.3.60.0120.00616.11
7.3.50.0130.00616.12
7.3.40.0100.01016.11
7.3.30.0110.00716.12
7.3.20.0130.00716.54
7.3.10.0170.00816.23
7.3.00.0220.00716.21
7.2.340.0110.00816.42
7.2.330.0140.00516.44
7.2.320.0130.00716.44
7.2.310.0120.00716.43
7.2.300.0120.00716.48
7.2.290.0110.00816.46
7.2.280.0120.00716.44
7.2.270.0110.00816.42
7.2.260.0090.00916.44
7.2.250.0110.00816.35
7.2.240.0100.00916.33
7.2.230.0100.00916.17
7.2.220.0100.00916.16
7.2.210.0110.00716.21
7.2.200.0110.00816.25
7.2.190.0110.00716.18
7.2.180.0110.00816.25
7.2.170.0110.00816.29
7.2.160.0080.01116.27
7.2.150.0110.00916.68
7.2.140.0110.00916.73
7.2.130.0180.00716.50
7.2.120.0190.00816.44
7.2.110.0180.00816.49
7.2.100.0200.00816.47
7.2.90.0180.00816.46
7.2.80.0220.00716.43
7.2.70.0170.00716.47
7.2.60.0170.00716.47
7.2.50.0180.00916.44
7.2.40.0160.00816.43
7.2.30.0170.00916.47
7.2.20.0190.00716.49
7.2.10.0150.00916.88
7.2.00.0210.00816.90
7.1.330.0150.00615.92
7.1.320.0140.00615.72
7.1.310.0140.00615.71
7.1.300.0130.00715.79
7.1.290.0140.00815.71
7.1.280.0150.00815.75
7.1.270.0150.00615.66
7.1.260.0120.00915.66
7.1.250.0220.00615.41
7.1.240.0190.00915.42
7.1.230.0210.00815.44
7.1.220.0210.00815.45
7.1.210.0200.00715.44
7.1.200.0160.00815.41
7.1.190.0220.00515.45
7.1.180.0190.00715.38
7.1.170.0180.00815.36
7.1.160.0200.00815.38
7.1.150.0210.00715.39
7.1.140.0230.00715.40
7.1.130.0180.00915.76
7.1.120.0180.00715.83
7.1.110.0230.00715.68
7.1.100.0340.00715.72
7.1.90.0290.00815.71
7.1.80.0170.00815.67
7.1.70.0220.00815.50
7.1.60.0230.00818.58
7.1.50.0210.00718.54
7.1.40.0240.00918.46
7.1.30.0230.00918.50
7.1.20.0220.00918.49
7.1.10.0220.00715.47
7.1.00.0160.00915.43
7.0.330.0280.00715.10
7.0.320.0220.00615.09
7.0.310.0260.00915.11
7.0.300.0260.00715.16
7.0.290.0220.00715.15
7.0.280.0210.00715.13
7.0.270.0180.01015.51
7.0.260.0210.00615.51
7.0.250.0230.00815.52
7.0.240.0200.00915.52
7.0.230.0230.00815.51
7.0.220.0210.00815.46
7.0.210.0220.00815.33
7.0.200.0190.00915.30
7.0.190.0240.00615.37
7.0.180.0210.00815.25
7.0.170.0260.00715.29
7.0.160.0210.00915.21
7.0.150.0190.00715.25
7.0.140.0230.00815.25
7.0.130.0160.00915.26
7.0.120.0160.00915.34
7.0.110.0200.00715.17
7.0.100.0200.00915.28
7.0.90.0220.00615.20
7.0.80.0210.00715.19
7.0.70.0200.00815.19
7.0.60.0190.00815.16
7.0.50.0200.00715.23
7.0.40.0200.00715.25
7.0.30.0190.00715.25
7.0.20.0190.00715.24
7.0.10.0190.00915.27
7.0.00.0210.00815.29
5.6.400.0150.01115.65
5.6.390.0160.00915.69
5.6.380.0160.00815.46
5.6.370.0150.01015.46
5.6.360.0150.00915.53
5.6.350.0150.01115.53
5.6.340.0170.00715.53
5.6.330.0140.01015.46
5.6.320.0150.00815.50
5.6.310.0160.00815.46
5.6.300.0150.01616.27
5.6.290.0150.01716.31
5.6.280.0150.01616.33
5.6.270.0140.01716.38
5.6.260.0130.01816.34
5.6.250.0130.01816.32
5.6.240.0140.01816.34
5.6.230.0140.01716.36
5.6.220.0150.01616.40
5.6.210.0160.01616.38
5.6.200.0180.01816.39
5.6.190.0140.01816.42
5.6.180.0140.01816.41
5.6.170.0150.01716.42
5.6.160.0150.01516.41
5.6.150.0160.01516.39
5.6.140.0160.01516.38
5.6.130.0160.01516.44
5.6.120.0150.01716.38
5.6.110.0160.01816.33
5.6.100.0160.01616.34
5.6.90.0150.01616.39
5.6.80.0140.01716.19
5.6.70.0150.01716.27
5.6.60.0160.01616.22
5.6.50.0130.01816.15
5.6.40.0130.01716.22
5.6.30.0140.01616.23
5.6.20.0150.01716.20
5.6.10.0130.01616.19
5.6.00.0130.01716.23
5.5.380.0150.01615.43
5.5.370.0130.01615.43
5.5.360.0150.01615.37
5.5.350.0130.01915.35
5.5.340.0130.01715.46
5.5.330.0150.01815.45
5.5.320.0160.01415.45
5.5.310.0140.01615.43
5.5.300.0150.01615.46
5.5.290.0150.01715.36
5.5.280.0140.01715.40
5.5.270.0150.01615.42
5.5.260.0140.01715.44
5.5.250.0140.01615.49
5.5.240.0130.01615.36
5.5.230.0140.01715.36
5.5.220.0140.01615.35
5.5.210.0140.01515.40
5.5.200.0150.01415.23
5.5.190.0130.01615.30
5.5.180.0120.01815.28
5.5.170.0150.00614.88
5.5.160.0150.01415.29
5.5.150.0120.01615.32
5.5.140.0150.01415.24
5.5.130.0140.01515.24
5.5.120.0130.01615.24
5.5.110.0140.01615.28
5.5.100.0140.01615.29
5.5.90.0140.01615.36
5.5.80.0110.01715.31
5.5.70.0140.01415.29
5.5.60.0130.01615.27
5.5.50.0130.01615.29
5.5.40.0150.01315.37
5.5.30.0140.01615.38
5.5.20.0140.01515.33
5.5.10.0130.01615.25
5.5.00.0130.01615.36
5.4.450.0110.01713.79
5.4.440.0110.01613.80
5.4.430.0110.01413.76
5.4.420.0110.01413.76
5.4.410.0120.01313.79
5.4.400.0110.01413.69
5.4.390.0110.01613.63
5.4.380.0120.01213.66
5.4.370.0120.01413.66
5.4.360.0110.01513.66
5.4.350.0110.01513.67
5.4.340.0100.01513.66
5.4.330.0130.00512.66
5.4.320.0130.01213.71
5.4.310.0100.01413.68
5.4.300.0120.01413.67
5.4.290.0110.01513.69
5.4.280.0100.01813.72
5.4.270.0120.01313.66
5.4.260.0120.01413.72
5.4.250.0130.01313.68
5.4.240.0120.01413.67
5.4.230.0130.01213.58
5.4.220.0110.01413.64
5.4.210.0110.01613.64
5.4.200.0120.01313.61
5.4.190.0100.01513.68
5.4.180.0130.01513.62
5.4.170.0110.01413.63
5.4.160.0120.01513.63
5.4.150.0120.01413.62
5.4.140.0120.01313.32
5.4.130.0130.01313.30
5.4.120.0120.01213.23
5.4.110.0120.01413.25
5.4.100.0110.01413.27
5.4.90.0120.01313.26
5.4.80.0110.01413.32
5.4.70.0110.01313.32
5.4.60.0100.01413.31
5.4.50.0100.01413.25
5.4.40.0100.01513.25
5.4.30.0110.01313.32
5.4.20.0110.01213.28
5.4.10.0110.01313.29
5.4.00.0100.01413.12
5.3.290.0130.01313.16
5.3.280.0110.01413.03
5.3.270.0110.01413.10
5.3.260.0100.01513.10
5.3.250.0120.01313.11
5.3.240.0100.01413.01
5.3.230.0090.01513.07
5.3.220.0120.01312.89
5.3.210.0110.01512.89
5.3.200.0120.01412.93
5.3.190.0100.01512.94
5.3.180.0130.01413.07
5.3.170.0130.01213.09
5.3.160.0120.01413.05
5.3.150.0110.01413.08
5.3.140.0120.01313.02
5.3.130.0130.01413.03
5.3.120.0110.01413.00
5.3.110.0120.01513.01
5.3.100.0120.01212.95
5.3.90.0090.01512.94
5.3.80.0120.01212.82
5.3.70.0100.01412.83
5.3.60.0120.01212.97
5.3.50.0100.01412.85
5.3.40.0110.01312.85
5.3.30.0110.01312.93
5.3.20.0090.01412.83
5.3.10.0100.01412.70
5.3.00.0110.01412.67

preferences:
76.32 ms | 401 KiB | 5 Q