3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = 'find me in my string'; $findme = 'find me'; $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.60.0040.01118.30
8.3.50.0140.00821.08
8.3.40.0100.01018.43
8.3.30.0000.01420.02
8.3.20.0070.00018.82
8.3.10.0060.00320.95
8.3.00.0080.00019.68
8.2.180.0110.00416.32
8.2.170.0140.00322.96
8.2.160.0110.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.15
8.2.110.0060.00320.36
8.2.100.0030.00717.91
8.2.90.0040.00419.21
8.2.80.0040.00419.32
8.2.70.0080.00017.50
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0040.00419.95
8.2.30.0040.00419.42
8.2.20.0040.00417.73
8.2.10.0000.00817.81
8.2.00.0020.00517.72
8.1.280.0100.01025.92
8.1.270.0060.00323.99
8.1.260.0070.01026.35
8.1.250.0080.00028.09
8.1.240.0000.00923.84
8.1.230.0000.01222.63
8.1.220.0030.00518.77
8.1.210.0000.00918.83
8.1.200.0000.00917.22
8.1.190.0000.00717.53
8.1.180.0080.00018.10
8.1.170.0080.00018.59
8.1.160.0070.00018.88
8.1.150.0030.00618.58
8.1.140.0000.00717.26
8.1.130.0030.00317.81
8.1.120.0050.00317.38
8.1.110.0070.00017.29
8.1.100.0000.00717.30
8.1.90.0000.00717.31
8.1.80.0000.00717.43
8.1.70.0030.00317.30
8.1.60.0040.00417.38
8.1.50.0050.00217.37
8.1.40.0050.00317.41
8.1.30.0000.00717.41
8.1.20.0000.00817.42
8.1.10.0040.00417.41
8.1.00.0090.00417.40
8.0.300.0000.00719.90
8.0.290.0000.00717.05
8.0.280.0030.00518.41
8.0.270.0060.00317.17
8.0.260.0030.00316.84
8.0.250.0050.00316.93
8.0.240.0050.00316.87
8.0.230.0030.00317.01
8.0.220.0070.00016.85
8.0.210.0060.00016.88
8.0.200.0020.00516.94
8.0.190.0030.00316.94
8.0.180.0000.00716.89
8.0.170.0050.00316.76
8.0.160.0040.00316.91
8.0.150.0030.00516.83
8.0.140.0040.00416.87
8.0.130.0000.00613.30
8.0.120.0030.00516.81
8.0.110.0040.00416.78
8.0.100.0040.00416.89
8.0.90.0040.00416.82
8.0.80.0070.01416.84
8.0.70.0040.00416.79
8.0.60.0080.00016.80
8.0.50.0050.00316.72
8.0.30.0180.00517.07
8.0.20.0080.01517.40
8.0.10.0040.00417.07
8.0.00.0120.00916.52
7.4.330.0020.00216.77
7.4.320.0030.00316.55
7.4.300.0000.00816.52
7.4.290.0040.00416.49
7.4.280.0080.00016.49
7.4.270.0000.00716.50
7.4.260.0000.00513.25
7.4.250.0000.00716.49
7.4.240.0050.00216.44
7.4.230.0040.00416.61
7.4.220.0090.01216.42
7.4.210.0030.01416.57
7.4.200.0000.00716.35
7.4.190.0030.00516.45
7.4.160.0060.01016.46
7.4.150.0030.01417.40
7.4.140.0100.00817.86
7.4.130.0110.00616.54
7.4.120.0100.00716.45
7.4.110.0070.01416.48
7.4.100.0120.00616.42
7.4.90.0090.00916.22
7.4.80.0120.01219.39
7.4.70.0060.00916.55
7.4.60.0100.00716.36
7.4.50.0020.00216.58
7.4.40.0030.00922.77
7.4.30.0140.00416.48
7.4.00.0100.00614.77
7.3.330.0050.00012.93
7.3.320.0030.00313.13
7.3.310.0030.00316.10
7.3.300.0030.00316.20
7.3.290.0030.01016.20
7.3.280.0110.00716.20
7.3.270.0140.00417.40
7.3.260.0120.00818.24
7.3.250.0100.01216.21
7.3.240.0040.01216.22
7.3.230.0160.00616.39
7.3.210.0100.01316.55
7.3.200.0140.00719.39
7.3.190.0080.01516.36
7.3.180.0130.00316.16
7.3.170.0090.00616.43
7.3.160.0140.00316.58
7.3.120.0030.01414.74
7.3.110.0030.01014.89
7.3.100.0090.00914.77
7.3.90.0100.00714.66
7.3.80.0090.00014.83
7.3.70.0030.00914.66
7.3.60.0070.00714.82
7.3.50.0060.00614.89
7.3.40.0070.00714.55
7.3.30.0000.01014.55
7.3.20.0060.00616.77
7.3.10.0100.00316.50
7.3.00.0060.00916.66
7.2.330.0130.00316.66
7.2.320.0110.00616.43
7.2.310.0100.01316.57
7.2.300.0060.01016.36
7.2.290.0160.00016.52
7.2.250.0070.01014.89
7.2.240.0100.01015.10
7.2.230.0030.00914.98
7.2.220.0030.01014.58
7.2.210.0040.01214.91
7.2.200.0060.00314.87
7.2.190.0090.00615.10
7.2.180.0030.01014.79
7.2.170.0130.00314.89
7.2.00.0040.01119.44
7.1.330.0150.00015.72
7.1.320.0000.01515.66
7.1.310.0040.01515.67
7.1.300.0000.00915.57
7.1.290.0030.00615.67
7.1.280.0130.00315.63
7.1.270.0060.00616.02
7.1.260.0060.00816.03
7.1.100.0040.00717.89
7.1.70.0000.00717.88
7.1.60.0070.00717.88
7.1.50.0120.01217.88
7.1.40.0130.00317.88
7.1.30.0100.00317.88
7.1.20.0040.01417.88
7.1.10.0000.01117.88
7.1.00.0080.00017.88
7.0.200.0030.00817.88
7.0.190.0040.00417.88
7.0.180.0060.00617.88
7.0.170.0060.00317.88
7.0.160.0090.00017.88
7.0.150.0000.00717.88
7.0.140.0030.00617.88
7.0.130.0030.00517.88
7.0.120.0000.01117.88
7.0.110.0030.01017.88
7.0.100.0080.00017.88
7.0.90.0000.00717.88
7.0.80.0000.00817.88
7.0.70.0040.00417.88
7.0.60.0030.01017.88
7.0.50.0040.00417.88
7.0.40.0030.00717.88
7.0.30.0070.00317.88
7.0.20.0000.00717.88
7.0.10.0030.01017.88
7.0.00.0030.01217.88
5.6.300.0070.04420.81
5.6.290.0140.03020.78
5.6.280.0000.05121.02
5.6.270.0000.04420.88
5.6.260.0060.05820.84
5.6.250.0100.04521.05
5.6.240.0030.07220.86
5.6.230.0000.04920.87
5.6.220.0000.05620.93
5.6.210.0030.06721.04
5.6.200.0070.07320.82
5.6.190.0030.05220.73
5.6.180.0030.05121.05
5.6.170.0100.03320.86
5.6.160.0000.04820.82
5.6.150.0030.08621.03
5.6.140.0070.04521.04
5.6.130.0100.06120.85
5.6.120.0070.07321.02
5.6.110.0000.05620.98
5.6.100.0030.04620.80
5.6.90.0000.05120.74
5.6.80.0000.04220.31
5.6.70.0070.06320.20
5.6.60.0030.06620.41
5.6.50.0130.03320.37
5.6.40.0030.10020.32
5.6.30.0100.06120.18
5.6.20.0000.04220.17
5.6.10.0000.04120.34
5.6.00.0030.04020.26
5.5.380.0030.04217.88
5.5.370.0000.04617.88
5.5.360.0000.06917.88
5.5.350.0030.07617.88
5.5.340.0000.04917.88
5.5.330.0030.04318.03
5.5.320.0040.04218.02
5.5.310.0030.05117.97
5.5.300.0070.05718.05
5.5.290.0070.03817.97
5.5.280.0100.04517.88
5.5.270.0030.04618.02
5.5.260.0100.03818.02
5.5.250.0030.04517.88
5.5.240.0230.02717.88
5.5.230.0060.07817.88
5.5.220.0070.04017.88
5.5.210.0070.04317.88
5.5.200.0030.05817.88
5.5.190.0000.05917.88
5.5.180.0030.03717.88
5.5.160.0060.03917.88
5.5.150.0000.04517.88
5.5.140.0030.04317.88
5.5.130.0030.04317.88
5.5.120.0210.03517.88
5.5.110.0000.04117.88
5.5.100.0070.04417.88
5.5.90.0070.05517.88
5.5.80.0030.04117.88
5.5.70.0070.04217.88
5.5.60.0000.05317.88
5.5.50.0060.04517.88
5.5.40.0000.04217.88
5.5.30.0000.03817.88
5.5.20.0060.04517.88
5.5.10.0030.03717.88
5.5.00.0070.03717.88
5.4.450.0100.08219.38
5.4.440.0000.04719.39
5.4.430.0000.04419.39
5.4.420.0030.04019.30
5.4.410.0000.04619.02
5.4.400.0030.04118.88
5.4.390.0000.04519.07
5.4.380.0070.03318.88
5.4.370.0070.03818.91
5.4.360.0170.02419.14
5.4.350.0000.03918.82
5.4.340.0060.03419.14
5.4.320.0070.08119.04
5.4.310.0030.04019.06
5.4.300.0090.03119.02
5.4.290.0100.04118.82
5.4.280.0070.03519.09
5.4.270.0100.03019.02
5.4.260.0100.03919.02
5.4.250.0070.04018.90
5.4.240.0070.04019.07
5.4.230.0000.04419.01
5.4.220.0030.04419.06
5.4.210.0000.04119.00
5.4.200.0030.04018.84
5.4.190.0140.04818.97
5.4.180.0000.04719.09
5.4.170.0030.04318.84
5.4.160.0030.03818.86
5.4.150.0090.03118.98
5.4.140.0030.03817.88
5.4.130.0000.03617.88
5.4.120.0030.06517.88
5.4.110.0000.04417.88
5.4.100.0030.04317.88
5.4.90.0060.03517.88
5.4.80.0030.03317.88
5.4.70.0000.04017.88
5.4.60.0060.03217.88
5.4.50.0030.03317.88
5.4.40.0000.03817.88
5.4.30.0000.05217.88
5.4.20.0000.05117.88
5.4.10.0040.04217.88
5.4.00.0030.03417.88
5.3.290.0000.06117.88
5.3.280.0030.03617.88
5.3.270.0000.05017.88
5.3.260.0070.03917.88
5.3.250.0100.03017.88
5.3.240.0030.03717.88
5.3.230.0060.03117.88
5.3.220.0000.04717.88
5.3.210.0070.03617.88
5.3.200.0030.03917.88
5.3.190.0030.04117.88
5.3.180.0000.04617.88
5.3.170.0030.03917.88
5.3.160.0030.04517.88
5.3.150.0030.03717.88
5.3.140.0100.04417.88
5.3.130.0100.03617.88
5.3.120.0000.04817.88
5.3.110.0040.04617.88
5.3.100.0000.03917.88
5.3.90.0000.04617.88
5.3.80.0000.03717.88
5.3.70.0030.03817.88
5.3.60.0070.05217.88
5.3.50.0030.03417.88
5.3.40.0030.03817.88
5.3.30.0030.03317.88
5.3.20.0160.03617.88
5.3.10.0000.03517.88
5.3.00.0000.04017.88
5.2.170.0000.03117.88
5.2.160.0000.03517.88
5.2.150.0000.03717.88
5.2.140.0070.02417.88
5.2.130.0000.03617.88
5.2.120.0030.02817.88
5.2.110.0030.02917.88
5.2.100.0230.02717.88
5.2.90.0030.02617.88
5.2.80.0000.03717.88
5.2.70.0000.03717.88
5.2.60.0030.03517.88
5.2.50.0000.03417.88
5.2.40.0030.02917.88
5.2.30.0240.02417.88
5.2.20.0000.03117.88
5.2.10.0030.03117.88
5.2.00.0000.03817.88
5.1.60.0030.02717.88
5.1.50.0060.02417.88
5.1.40.0060.01917.88
5.1.30.0000.03117.88
5.1.20.0000.03017.88
5.1.10.0000.02617.88
5.1.00.0070.04417.88
5.0.50.0060.01617.88
5.0.40.0040.01817.88
5.0.30.0030.04517.88
5.0.20.0030.01717.88
5.0.10.0000.02217.88
5.0.00.0000.04717.88
4.4.90.0000.01617.88
4.4.80.0040.01617.88
4.4.70.0000.01817.88
4.4.60.0000.01717.88
4.4.50.0030.01517.88
4.4.40.0000.02617.88
4.4.30.0030.01717.88
4.4.20.0030.01517.88
4.4.10.0040.01917.88
4.4.00.0000.02517.88
4.3.110.0030.03717.88
4.3.100.0030.02117.88
4.3.90.0000.01817.88
4.3.80.0000.02717.88
4.3.70.0000.01817.88
4.3.60.0030.02017.88
4.3.50.0000.01717.88
4.3.40.0190.01317.88
4.3.30.0000.02117.88
4.3.20.0030.01517.88
4.3.10.0030.01417.88
4.3.00.0000.02617.88

preferences:
45.87 ms | 401 KiB | 5 Q