3v4l.org

run code in 300+ PHP versions simultaneously
<?php $event = ['categories' => 'meeting;skype']; $needle = 'meeting'; $haystack = $event['categories']; if( ($pos = strpos( $haystack, $needle )) === false){ echo "\n$needle not found in $haystack"; } else { echo "\n$needle exists at position $pos in $haystack"; }

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.4.120.0150.00520.54
8.4.110.0070.00219.01
8.4.100.0100.01117.44
8.4.90.0120.00820.54
8.4.80.0080.00118.69
8.4.70.0120.00818.11
8.4.60.0110.00919.05
8.4.50.0100.01018.70
8.4.40.0060.00319.35
8.4.30.0080.00019.42
8.4.20.0070.01419.59
8.4.10.0040.00419.50
8.3.250.0050.00616.88
8.3.240.0090.00616.55
8.3.230.0120.00716.75
8.3.220.0070.01018.75
8.3.210.0100.01016.49
8.3.200.0040.00516.71
8.3.190.0100.00717.12
8.3.180.0080.01017.30
8.3.170.0110.00720.83
8.3.160.0100.00716.61
8.3.150.0120.00617.26
8.3.140.0040.00416.38
8.3.130.0060.00318.28
8.3.120.0070.00418.99
8.3.110.0030.00516.53
8.3.100.0030.00618.41
8.3.90.0000.00826.77
8.3.80.0060.00318.56
8.3.70.0090.00918.43
8.3.60.0140.00718.30
8.3.50.0120.00817.39
8.3.40.0070.00718.75
8.3.30.0090.00918.85
8.3.20.0040.00420.39
8.3.10.0050.00321.11
8.3.00.0050.00320.94
8.2.290.0100.00917.33
8.2.280.0090.00818.25
8.2.270.0140.00417.25
8.2.260.0180.00416.56
8.2.250.0080.00016.62
8.2.240.0030.00617.27
8.2.230.0040.00420.94
8.2.220.0050.00524.06
8.2.210.0040.00426.77
8.2.200.0090.00018.16
8.2.190.0140.00616.58
8.2.180.0140.00716.75
8.2.170.0070.00722.96
8.2.160.0070.00722.03
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0040.00421.00
8.2.110.0070.00320.48
8.2.100.0110.00017.72
8.2.90.0030.00519.23
8.2.80.0040.00418.05
8.2.70.0040.00417.75
8.2.60.0000.00818.04
8.2.50.0030.00618.10
8.2.40.0060.00322.38
8.2.30.0070.00019.19
8.2.20.0020.00518.17
8.2.10.0040.00418.18
8.2.00.0050.00218.14
8.1.330.0100.00916.02
8.1.320.0080.01018.49
8.1.310.0080.00016.14
8.1.300.0040.00416.08
8.1.290.0030.00618.88
8.1.280.0140.00725.92
8.1.270.0050.00322.00
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00617.36
8.1.230.0110.00022.72
8.1.220.0000.00817.91
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00517.23
8.1.180.0080.00018.10
8.1.170.0000.00818.51
8.1.160.0000.00719.01
8.1.150.0000.00818.87
8.1.140.0070.00019.42
8.1.130.0000.00718.74
8.1.120.0000.00717.32
8.1.110.0030.00617.39
8.1.100.0040.00417.28
8.1.90.0000.00817.41
8.1.80.0000.00717.29
8.1.70.0050.00317.38
8.1.60.0040.00417.52
8.1.50.0040.00417.39
8.1.40.0030.00517.44
8.1.30.0000.00817.50
8.1.20.0000.00817.46
8.1.10.0050.00217.60
8.1.00.0000.00717.51
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0050.00318.34
8.0.270.0040.00416.82
8.0.260.0030.00318.89
8.0.250.0070.00016.96
8.0.240.0030.00616.89
8.0.230.0000.00716.97
8.0.220.0050.00316.92
8.0.210.0070.00016.75
8.0.200.0030.00316.80
8.0.190.0000.00916.95
8.0.180.0030.00516.84
8.0.170.0040.00416.84
8.0.160.0040.00416.91
8.0.150.0040.00416.84
8.0.140.0040.00416.90
8.0.130.0000.00513.28
8.0.120.0040.00416.86
8.0.110.0000.00716.92
8.0.100.0050.00316.74
8.0.90.0030.00516.68
8.0.80.0000.01816.93
8.0.70.0000.00716.75
8.0.60.0080.00016.89
8.0.50.0000.00716.76
8.0.30.0120.00717.02
8.0.20.0100.00917.40
8.0.10.0050.00316.83
8.0.00.0070.01016.76
7.4.330.0020.00215.55
7.4.320.0000.00616.50
7.4.300.0000.00716.54
7.4.290.0000.00916.50
7.4.280.0040.00416.50
7.4.270.0060.00316.61
7.4.260.0000.00816.53
7.4.250.0040.00416.49
7.4.240.0050.00216.65
7.4.230.0070.00016.43
7.4.220.0050.01416.59
7.4.210.0070.00716.64
7.4.200.0070.00016.53
7.4.160.0120.00416.59
7.4.150.0030.01517.40
7.4.140.0100.01017.86
7.4.130.0070.01116.45
7.4.120.0110.00816.56
7.4.110.0030.01316.54
7.4.100.0160.00316.47
7.4.90.0060.00916.44
7.4.80.0060.01019.39
7.4.70.0100.00716.46
7.4.60.0120.00416.53
7.4.50.0080.00616.45
7.4.40.0030.01716.64
7.4.30.0140.00716.27
7.4.00.0060.00614.83
7.3.330.0020.00213.10
7.3.320.0050.00013.16
7.3.310.0000.00816.30
7.3.300.0030.00316.25
7.3.290.0080.01016.30
7.3.280.0100.00716.26
7.3.270.0070.01017.40
7.3.260.0140.01016.42
7.3.250.0100.00716.47
7.3.240.0100.00716.40
7.3.230.0120.00616.41
7.3.210.0090.00916.42
7.3.200.0090.01316.37
7.3.190.0150.00316.37
7.3.180.0040.01316.32
7.3.170.0100.00616.38
7.3.160.0120.00316.52
7.2.330.0110.01116.68
7.2.320.0130.00316.73
7.2.310.0090.00616.71
7.2.300.0130.00316.64
7.2.290.0000.01716.70
7.2.60.0000.01216.89
7.1.200.0030.00615.53
7.1.80.0040.01318.13
7.1.70.0030.01317.21
7.1.60.0170.02135.11
7.1.50.0150.02134.71
7.1.40.0210.01434.54
7.1.30.0140.01734.34
7.1.20.0060.02234.70
7.1.10.0080.00816.73
7.1.00.0060.00816.75
7.0.200.0030.01216.71
7.0.190.0040.01216.59
7.0.180.0070.01016.00
7.0.170.0000.01316.07
7.0.160.0060.01116.11
7.0.150.0060.01216.15
7.0.140.0070.00716.43
7.0.130.0110.00316.30
7.0.120.0000.01216.34
7.0.110.0000.01416.23
7.0.100.0030.01316.27
7.0.90.0060.00616.24
7.0.80.0000.01616.41
7.0.70.0040.01216.36
7.0.60.0000.01516.19
7.0.50.0060.00616.48
7.0.40.0000.01616.45
7.0.30.0060.00916.49
7.0.20.0040.01216.63
7.0.10.0080.00816.41
7.0.00.0100.00516.34

preferences:
29.09 ms | 403 KiB | 5 Q