3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haystack = 'this is a verygood school of sachin'; $pattern = 'sch'; $match = strpos($haystack, $pattern); echo $match; ?>

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.0110.00418.67
8.3.30.0070.00720.33
8.3.20.0000.00820.39
8.3.10.0080.00021.08
8.3.00.0040.00422.46
8.2.170.0040.01122.96
8.2.160.0030.01022.13
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0070.00020.69
8.2.110.0040.00420.53
8.2.100.0060.00617.91
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00317.90
8.2.30.0040.00419.50
8.2.20.0000.00817.61
8.2.10.0000.00717.65
8.2.00.0070.00317.70
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.98
8.1.230.0100.00018.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00317.22
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00818.27
8.1.160.0040.00418.86
8.1.150.0040.00418.57
8.1.140.0000.00817.39
8.1.130.0030.00317.81
8.1.120.0030.00517.40
8.1.110.0000.00717.47
8.1.100.0040.00417.41
8.1.90.0040.00417.36
8.1.80.0040.00417.42
8.1.70.0000.00817.38
8.1.60.0070.00017.55
8.1.50.0040.00417.34
8.1.40.0050.00217.51
8.1.30.0070.00017.51
8.1.20.0030.00617.55
8.1.10.0050.00217.53
8.1.00.0050.00217.45
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0070.00018.34
8.0.270.0080.00017.25
8.0.260.0000.00716.86
8.0.250.0030.00316.96
8.0.240.0000.00716.96
8.0.230.0040.00416.78
8.0.220.0030.00316.76
8.0.210.0060.00016.86
8.0.200.0030.00316.85
8.0.190.0000.00716.88
8.0.180.0070.00016.82
8.0.170.0030.00616.86
8.0.160.0030.00316.85
8.0.150.0040.00416.76
8.0.140.0030.00516.64
8.0.130.0000.00613.25
8.0.120.0030.00516.77
8.0.110.0050.00316.79
8.0.100.0080.00016.87
8.0.90.0000.00716.81
8.0.80.0170.00316.77
8.0.70.0000.00716.64
8.0.60.0000.00716.89
8.0.50.0050.00216.88
8.0.30.0060.01516.74
8.0.20.0090.01017.40
8.0.10.0000.00716.90
8.0.00.0080.00816.61
7.4.330.0030.00316.67
7.4.320.0030.00316.57
7.4.300.0000.00616.40
7.4.290.0030.00316.43
7.4.280.0060.00016.53
7.4.270.0030.00316.46
7.4.260.0000.00713.20
7.4.250.0000.00916.29
7.4.240.0020.00516.38
7.4.230.0000.00716.28
7.4.220.0120.01216.41
7.4.210.0090.00716.44
7.4.200.0000.00716.28
7.4.190.0000.00716.40
7.4.160.0060.01216.43
7.4.150.0110.00717.40
7.4.140.0110.00917.86
7.4.130.0070.01016.52
7.4.120.0100.00616.38
7.4.110.0100.00616.27
7.4.100.0080.00816.39
7.4.90.0080.00816.51
7.4.80.0060.01219.39
7.4.70.0100.00616.34
7.4.60.0040.01516.33
7.4.50.0030.00616.39
7.4.40.0000.01522.77
7.4.30.0080.00916.54
7.4.00.0030.00715.00
7.3.330.0000.00513.14
7.3.320.0060.00013.09
7.3.310.0060.00016.16
7.3.300.0000.00716.13
7.3.290.0110.00416.17
7.3.280.0090.00716.24
7.3.270.0080.01217.40
7.3.260.0070.01018.24
7.3.250.0110.00516.37
7.3.240.0080.00816.39
7.3.230.0110.00816.39
7.3.210.0130.00316.46
7.3.200.0080.01119.39
7.3.190.0120.00816.14
7.3.180.0100.00616.29
7.3.170.0100.00716.52
7.3.160.0090.00616.21
7.3.120.0040.00814.45
7.2.330.0120.00416.54
7.2.320.0060.01216.54
7.2.310.0060.01216.50
7.2.300.0100.01016.36
7.2.290.0090.00616.60
7.2.60.0000.01416.91
7.2.00.0100.00719.27
7.1.200.0080.00815.67
7.1.100.0030.00618.19
7.1.70.0030.00617.26
7.1.60.0100.01419.17
7.1.50.0140.01016.78
7.1.00.0070.05322.36
7.0.200.0000.00716.67
7.0.140.0070.07022.15
7.0.60.0070.06720.02
7.0.50.0070.05017.87
7.0.40.0070.08020.06
7.0.30.0030.05320.01
7.0.20.0200.03720.04
7.0.10.0230.04720.00
7.0.00.0100.07720.17
5.6.280.0070.07021.14
5.6.210.0070.08020.64
5.6.200.0070.08018.15
5.6.190.0070.08020.60
5.6.180.0300.07720.27
5.6.170.0200.08020.54
5.6.160.0030.04020.34
5.6.150.0030.04318.12
5.6.140.0170.02718.18
5.6.130.0200.06718.18
5.6.120.0030.09021.13
5.6.110.0070.06021.04
5.6.100.0130.07720.96
5.6.90.0070.07720.95
5.6.80.0030.08320.40
5.6.70.4300.04320.36
5.5.350.0100.07720.46
5.5.340.0100.04717.98
5.5.330.0000.05320.40
5.5.320.0400.07720.50
5.5.310.0370.06020.21
5.5.300.0130.03017.92
5.5.290.0100.07718.02
5.5.280.0070.07720.89
5.5.270.0100.08020.96
5.5.260.0070.08020.75
5.5.250.0070.08720.45
5.5.240.0070.06020.22
5.4.450.3430.04019.57
5.4.440.3070.04319.13
5.4.430.3870.03719.20
5.4.420.4070.04019.41
5.4.410.4000.03719.26
5.4.400.3970.04019.13
5.4.390.2830.04019.21
5.4.380.3130.04018.80
5.4.370.4170.04719.08
5.4.360.3530.03718.88
5.4.350.3400.04019.13
5.4.340.3170.03018.93
5.4.320.3100.03719.04
5.4.310.4800.03018.93
5.4.300.3230.04019.10
5.4.290.3300.04318.88
5.4.280.3030.04319.21
5.4.270.3070.04018.88
5.4.260.3130.03319.09
5.4.250.3200.03019.13
5.4.240.3830.04019.12
5.4.230.3330.04019.16
5.4.220.3070.04018.91
5.4.210.3070.03719.07
5.4.200.3330.03719.08
5.4.190.3400.03718.87
5.4.180.3030.03718.87
5.4.170.3270.03718.87
5.4.160.3370.04018.76
5.4.150.3970.03718.77
5.4.140.3970.03016.35
5.4.130.3330.03716.27
5.4.120.3400.04016.31
5.4.110.3130.03316.23
5.4.100.2800.03716.06
5.4.90.3000.03316.50
5.4.80.3170.03016.37
5.4.70.2570.04016.23
5.4.60.2830.04316.47
5.4.50.2970.03016.39
5.4.40.2970.03016.16
5.4.30.3000.03716.03
5.4.20.3070.03716.13
5.4.10.2930.03716.23
5.4.00.2900.04015.70
5.3.290.3070.03714.61
5.3.280.3030.04014.52
5.3.270.3100.04314.54
5.3.260.3400.03714.51
5.3.250.3830.04014.58
5.3.240.3730.03714.46
5.3.230.3170.04014.54
5.3.220.3170.03314.61
5.3.210.3130.03314.59
5.3.200.3570.04714.59
5.3.190.2600.04014.41
5.3.180.3000.04014.54
5.3.170.3130.04014.39
5.3.160.2700.03714.38
5.3.150.2600.04014.43
5.3.140.3370.03714.40
5.3.130.3170.03314.50
5.3.120.2770.04014.38
5.3.110.2830.04014.40
5.3.100.3330.03714.06
5.3.90.2970.03313.93
5.3.80.2830.04313.82
5.3.70.3130.04013.84
5.3.60.3170.03714.09
5.3.50.3270.03713.81
5.3.40.3470.03313.84
5.3.30.3830.03013.99
5.3.20.3570.04013.75
5.3.10.3030.04013.53
5.3.00.3370.03313.48
5.2.170.2330.03011.01
5.2.160.2430.03311.00
5.2.150.2800.02711.15
5.2.140.3170.03011.16
5.2.130.2600.02310.95
5.2.120.2630.03310.93
5.2.110.2430.02310.93
5.2.100.3000.02311.19
5.2.90.2970.02711.15
5.2.80.2530.03011.00
5.2.70.2770.02711.12
5.2.60.3070.03310.88
5.2.50.2900.03311.02
5.2.40.2330.02711.04
5.2.30.1730.02711.01
5.2.20.2100.03011.04
5.2.10.1900.03010.96
5.2.00.2330.03010.60
5.1.60.2300.02010.10
5.1.50.2130.0239.90
5.1.40.2500.02710.12
5.1.30.2230.03010.55
5.1.20.2300.02310.42
5.1.10.2270.0209.96
5.1.00.1930.03010.20
5.0.50.0970.0238.45
5.0.40.1170.0178.43
5.0.30.1230.0408.43
5.0.20.1200.0208.43
5.0.10.1270.0278.43
5.0.00.1230.0338.43
4.4.90.1070.0138.43
4.4.80.1300.0208.43
4.4.70.1100.0208.43
4.4.60.1100.0178.43
4.4.50.0930.0138.43
4.4.40.1370.0278.43
4.4.30.1270.0138.43
4.4.20.0930.0178.43
4.4.10.1300.0138.43
4.4.00.1030.0238.43
4.3.110.1130.0178.43
4.3.100.1200.0178.43
4.3.90.1070.0138.43
4.3.80.1000.0278.43
4.3.70.1170.0178.43
4.3.60.0900.0208.43
4.3.50.1430.0208.43
4.3.40.1370.0238.43
4.3.30.0700.0208.43
4.3.20.0730.0208.43
4.3.10.0730.0208.43
4.3.00.0800.0178.43

preferences:
46.62 ms | 400 KiB | 5 Q