3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(strpos(needle: "foo", haystack: "foobar"));

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.5.30.0150.00719.46
8.5.20.0070.00119.76
8.5.10.0070.01216.61
8.5.00.0140.00819.61
8.4.180.0160.01121.21
8.4.170.0100.01220.17
8.4.160.0120.00923.65
8.4.150.0080.00416.86
8.4.140.0120.00817.12
8.4.130.0120.00717.73
8.4.120.0100.01020.62
8.4.110.0090.01022.37
8.4.100.0050.00517.61
8.4.90.0130.00817.25
8.4.80.0040.00517.48
8.4.70.0100.00817.55
8.4.60.0130.00718.52
8.4.50.0130.00717.54
8.4.40.0160.00319.18
8.4.30.0140.00718.64
8.4.20.0040.00418.74
8.4.10.0030.00619.19
8.3.300.0110.00920.81
8.3.290.0100.00920.73
8.3.280.0150.00518.25
8.3.270.0120.00716.54
8.3.260.0070.00916.41
8.3.250.0040.00418.93
8.3.240.0120.00716.66
8.3.230.0040.00516.19
8.3.220.0100.00816.94
8.3.210.0030.00416.59
8.3.200.0140.00616.26
8.3.190.0080.00617.03
8.3.180.0130.00616.57
8.3.170.0090.00916.25
8.3.160.0160.00316.26
8.3.150.0080.00017.23
8.3.140.0070.01117.13
8.3.130.0030.00618.54
8.3.120.0130.00718.81
8.3.110.0080.00820.94
8.3.100.0160.00316.38
8.3.90.0140.00026.77
8.3.80.0090.00019.36
8.3.70.0070.01416.58
8.3.60.0060.01218.28
8.3.50.0130.00316.23
8.3.40.0100.01018.84
8.3.30.0110.00418.54
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0120.00822.02
8.2.290.0110.00620.31
8.2.280.0050.00319.93
8.2.270.0110.00716.54
8.2.260.0120.00619.01
8.2.250.0080.00018.45
8.2.240.0060.01318.32
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0090.00018.88
8.2.190.0110.01118.29
8.2.180.0040.01125.92
8.2.170.0110.00318.71
8.2.160.0190.00022.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00719.83
8.2.110.0100.00020.48
8.2.100.0070.00320.38
8.1.340.0090.01021.61
8.1.330.0080.01019.64
8.1.320.0140.00515.85
8.1.310.0030.00516.70
8.1.300.0110.00720.21
8.1.290.0030.00630.84
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00722.10
8.1.230.0060.00318.96
8.0.30.0050.01216.78
8.0.20.0140.00416.75
8.0.10.0130.00316.82
8.0.00.0120.00616.86
7.4.160.0070.00716.48
7.4.150.0030.01416.47
7.4.140.0080.00816.30
7.4.130.0030.01316.23
7.4.120.0130.00316.18
7.4.110.0030.01316.14
7.4.100.0070.00716.32
7.4.90.0080.00816.28
7.4.80.0030.01316.32
7.4.70.0140.00016.34
7.4.60.0070.00716.34
7.4.50.0030.01116.25
7.4.40.0060.01016.11
7.4.30.0130.00316.33
7.4.20.0070.00716.27
7.4.10.0060.00816.32
7.4.00.0100.00616.25
7.3.280.0030.01016.16
7.3.270.0070.01016.18
7.3.260.0100.00616.10
7.3.250.0100.00316.20
7.3.240.0120.00316.17
7.3.230.0080.00816.16
7.3.220.0090.00616.08
7.3.210.0030.01216.06
7.3.200.0030.01016.04
7.3.190.0100.00716.11
7.3.180.0070.00716.15
7.3.170.0030.01016.13
7.3.160.0080.00816.07
7.3.150.0060.00916.15
7.3.140.0040.01016.13
7.3.130.0070.00716.12
7.3.120.0070.00616.08
7.3.110.0100.00616.07
7.3.100.0030.01215.98
7.3.90.0060.00616.46
7.3.80.0040.00816.08
7.3.70.0030.00916.12
7.3.60.0090.00316.22
7.3.50.0040.01216.24
7.3.40.0030.01216.20
7.3.30.0070.00716.14
7.3.20.0040.01216.23
7.3.10.0000.01316.14
7.3.00.0060.00616.11

preferences:
45.81 ms | 1052 KiB | 4 Q