3v4l.org

run code in 300+ PHP versions simultaneously
<?php strpos('a', 'a'); strpos(false, 'a'); strpos(array(), 'a');

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.130.0050.00518.36
8.3.120.0030.00620.53
8.3.110.0030.01016.50
8.3.100.0060.00316.66
8.3.90.0040.00426.77
8.3.80.0060.00317.97
8.3.70.0040.01118.55
8.3.60.0070.01418.28
8.3.50.0060.01316.68
8.3.40.0090.00920.02
8.3.30.0140.00418.75
8.3.20.0030.00524.18
8.3.10.0040.00424.66
8.3.00.0000.00926.16
8.2.250.0100.00016.55
8.2.240.0080.00817.15
8.2.230.0090.00020.94
8.2.220.0040.00437.54
8.2.210.0060.00326.77
8.2.200.0030.00718.66
8.2.190.0040.01116.75
8.2.180.0110.00416.75
8.2.170.0120.00618.83
8.2.160.0140.00722.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0000.00721.04
8.2.110.0100.00021.10
8.2.100.0040.00717.66
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0080.00017.59
8.2.60.0030.00617.91
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0060.00318.04
8.2.20.0120.00317.66
8.2.10.0090.00517.70
8.2.00.0140.00017.59
8.1.300.0070.01420.26
8.1.290.0030.00630.84
8.1.280.0210.00025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00420.94
8.1.230.0080.00317.64
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00718.51
8.1.160.0000.00818.70
8.1.150.0110.00317.27
8.1.140.0120.00217.33
8.1.130.0090.00417.28
8.1.120.0110.00317.32
8.1.110.0090.00617.29
8.1.100.0110.00517.32
8.1.90.0120.00317.33
8.1.80.0130.00317.37
8.1.70.0110.00517.36
8.1.60.0130.00517.44
8.1.50.0130.00617.49
8.1.40.0180.00317.55
8.1.30.0120.00817.54
8.1.20.0140.00517.56
8.1.10.0130.00417.52
8.1.00.0110.00617.44
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0040.00418.24
8.0.270.0050.00916.74
8.0.260.0110.00416.79
8.0.250.0120.00316.87
8.0.240.0090.00416.87
8.0.230.0110.00116.87
8.0.220.0090.00616.76
8.0.210.0100.00416.69
8.0.200.0090.00516.83
8.0.190.0110.00416.83
8.0.180.0090.00516.88
8.0.170.0080.00616.82
8.0.160.0090.00616.86
8.0.150.0090.00516.73
8.0.140.0090.00516.83
8.0.130.0100.00416.76
8.0.120.0130.00216.75
8.0.110.0090.00516.79
8.0.100.0080.00616.77
8.0.90.0140.00316.72
8.0.80.0140.00316.75
8.0.70.0110.00416.75
8.0.60.0090.00516.78
8.0.50.0080.00616.79
8.0.30.0090.00516.74
8.0.20.0080.00716.85
8.0.10.0110.00316.83

preferences:
29.43 ms | 403 KiB | 5 Q