3v4l.org

run code in 300+ PHP versions simultaneously
<?php $status = 'i love watching tv on my brand new apple mac'; $productFile = "apple sony dyson mcdonalds ipod"; if (strpos($status,$productFile) !== false) { echo 'the status contains a product'; } else{ echo 'The status doesnt contain a product'; }

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.0090.00618.37
8.3.50.0110.00521.98
8.3.40.0140.00018.87
8.3.30.0110.00319.00
8.3.20.0070.00020.16
8.3.10.0070.00022.08
8.3.00.0050.00322.52
8.2.180.0120.00616.50
8.2.170.0000.01422.96
8.2.160.0030.01020.94
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0140.00026.16
8.2.120.0030.00717.50
8.2.110.0000.01019.30
8.2.100.0040.00817.78
8.2.90.0040.00419.22
8.2.80.0000.00818.04
8.2.70.0070.00417.38
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0000.00818.14
8.2.30.0000.00817.88
8.2.20.0040.00417.59
8.2.10.0070.00017.50
8.2.00.0030.00617.63
8.1.280.0070.00725.92
8.1.270.0080.00022.20
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00723.75
8.1.230.0080.00320.92
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0100.00017.23
8.1.190.0000.00717.28
8.1.180.0030.00518.61
8.1.170.0000.00818.44
8.1.160.0000.00721.81
8.1.150.0070.00318.57
8.1.140.0070.00017.42
8.1.130.0030.00317.70
8.1.120.0030.00317.33
8.1.110.0060.00317.39
8.1.100.0000.00717.34
8.1.90.0070.00017.40
8.1.80.0070.00017.42
8.1.70.0000.00717.36
8.1.60.0080.00017.40
8.1.50.0020.00517.45
8.1.40.0000.00917.46
8.1.30.0000.00717.48
8.1.20.0030.00617.54
8.1.10.0060.00317.48
8.1.00.0040.00417.46
8.0.300.0000.00720.02
8.0.290.0000.00717.16
8.0.280.0070.00018.52
8.0.270.0000.00717.25
8.0.260.0060.00016.77
8.0.250.0070.00016.93
8.0.240.0040.00416.77
8.0.230.0000.00716.89
8.0.220.0000.00616.69
8.0.210.0030.00316.85
8.0.200.0030.00316.75
8.0.190.0000.00716.84
8.0.180.0030.00316.78
8.0.170.0050.00416.91
8.0.160.0040.00416.90
8.0.150.0040.00416.67
8.0.140.0000.00716.77
8.0.130.0060.00313.26
8.0.120.0000.00816.80
8.0.110.0030.00516.71
8.0.100.0000.00716.71
8.0.90.0040.00416.67
8.0.80.0070.01016.77
8.0.70.0000.00716.78
8.0.60.0000.00716.81
8.0.50.0040.00416.66
8.0.30.0090.01017.01
8.0.20.0120.00617.40
8.0.10.0040.00416.76
8.0.00.0140.01016.71
7.4.330.0050.00015.15
7.4.320.0030.00316.58
7.4.300.0060.00016.50
7.4.290.0080.00016.58
7.4.280.0030.00316.61
7.4.270.0060.00016.43
7.4.260.0000.00716.60
7.4.250.0040.00416.62
7.4.240.0000.00716.54
7.4.230.0070.00016.54
7.4.220.0150.00616.46
7.4.210.0050.01116.47
7.4.200.0030.00316.31
7.4.190.0030.00316.45
7.4.160.0080.01416.32
7.4.150.0100.00717.40
7.4.140.0090.00917.86
7.4.130.0120.00716.63
7.4.120.0130.00316.52
7.4.110.0100.00616.49
7.4.100.0090.00916.61
7.4.90.0140.01416.56
7.4.80.0060.00919.39
7.4.70.0120.01016.36
7.4.60.0140.00316.50
7.4.50.0040.00416.51
7.4.40.0110.00422.77
7.4.30.0120.00416.57
7.4.00.0060.01014.85
7.3.330.0030.00313.18
7.3.320.0060.00013.03
7.3.310.0080.00016.29
7.3.300.0060.00016.12
7.3.290.0070.00716.20
7.3.280.0060.01116.21
7.3.270.0100.00717.40
7.3.260.0120.01216.38
7.3.250.0120.00916.17
7.3.240.0060.01016.13
7.3.230.0080.00816.39
7.3.210.0060.01116.44
7.3.200.0100.01019.39
7.3.190.0090.01216.30
7.3.180.0060.01016.31
7.3.170.0050.00716.38
7.3.160.0090.00916.44
7.3.120.0040.01114.80
7.3.110.0000.01814.84
7.3.100.0040.01114.57
7.3.90.0040.00714.38
7.3.80.0070.01114.73
7.3.70.0090.00314.73
7.3.60.0070.01114.65
7.3.50.0110.00414.64
7.3.40.0020.01314.71
7.3.30.0040.00714.59
7.3.20.0030.01016.65
7.3.10.0030.01016.77
7.3.00.0070.00716.39
7.2.330.0000.01716.75
7.2.320.0070.01016.74
7.2.310.0100.00616.67
7.2.300.0060.01116.62
7.2.290.0090.00616.45
7.2.250.0070.01114.88
7.2.240.0070.01014.88
7.2.230.0070.00714.92
7.2.220.0040.00814.77
7.2.210.0000.01015.06
7.2.200.0070.00715.02
7.2.190.0070.00714.97
7.2.180.0120.00614.91
7.2.170.0040.00715.13
7.2.60.0090.00616.88
7.2.00.0060.00919.49
7.1.330.0070.00715.99
7.1.320.0090.00615.83
7.1.310.0060.00315.61
7.1.300.0000.01515.73
7.1.290.0060.00615.63
7.1.280.0030.00715.71
7.1.270.0140.00015.75
7.1.260.0040.01115.77
7.1.200.0060.00615.77
7.1.100.0060.00617.89
7.1.70.0000.00817.05
7.1.60.0290.01015.39
7.1.50.0120.01216.72
7.1.00.0130.06722.39
7.0.200.0130.00916.79
7.0.140.0000.07022.15
7.0.60.0070.07719.87
7.0.50.0070.08017.81
7.0.40.0000.07020.30
7.0.30.0330.04020.09
7.0.20.0300.05720.38
7.0.10.0300.06720.20
7.0.00.0100.03720.16
5.6.280.0070.07021.04
5.6.210.0070.08020.76
5.6.200.0130.07018.16
5.6.190.0000.04720.43
5.6.180.4270.04020.39
5.6.170.0370.04320.54
5.6.160.0130.07720.54
5.6.150.0030.05718.21
5.6.140.0030.04018.21
5.6.130.0070.04718.07
5.6.120.0030.05021.03
5.6.110.0030.05720.97
5.6.100.0030.09321.02
5.6.90.0130.05020.96
5.6.80.0100.08020.51
5.6.70.0230.07020.34
5.5.350.0000.06320.43
5.5.340.0070.08018.02
5.5.330.0100.07720.21
5.5.320.0270.03720.29
5.5.310.0500.08720.17
5.5.300.0070.08018.01
5.5.290.0100.07017.95
5.5.280.0030.07720.87
5.5.270.0170.06320.75
5.5.260.0100.07720.64
5.5.250.0030.06720.57
5.5.240.0070.07720.36
5.4.450.0300.06019.13
5.4.440.0530.05719.59
5.4.430.0100.05319.32
5.4.420.0030.06019.40
5.4.410.0200.04319.41
5.4.400.0770.00018.64
5.4.390.0900.00018.75
5.4.380.0330.05018.49
5.4.370.0270.05018.45
5.4.360.0300.06018.57
5.4.350.0230.06018.50
5.4.340.0100.05718.46
5.4.320.0020.04012.46
5.4.310.0080.03612.45
5.4.300.0090.04012.46
5.4.290.0040.04512.45
5.4.280.0060.03512.35
5.4.270.0070.03712.35
5.4.260.0100.05019.04
5.4.250.0070.05018.93
5.4.240.0000.05718.65
5.4.230.0070.05019.04
5.4.220.0100.05018.88
5.4.210.0170.04018.74
5.4.200.0000.05318.65
5.4.190.0070.05318.87
5.4.180.0100.05019.02
5.4.170.0200.04018.89
5.4.160.0070.05018.79
5.4.150.0100.05018.95
5.4.140.0030.06016.26
5.4.130.0070.06716.25
5.4.120.0130.05316.25
5.4.110.0100.05316.54
5.4.100.0100.04716.40
5.4.90.0070.05716.24
5.4.80.0200.03716.38
5.4.70.0070.04716.41
5.4.60.0000.05316.41
5.4.50.0130.04316.32
5.4.40.0070.05016.38
5.4.30.0070.07316.26
5.4.20.0100.04716.50
5.4.10.0100.05016.48
5.4.00.0070.04715.70
5.3.290.0080.04512.80
5.3.280.0170.04014.60
5.3.270.0100.04714.49
5.3.260.0070.06014.47
5.3.250.0030.05314.66
5.3.240.0030.05314.64
5.3.230.0070.04714.61
5.3.220.0070.07314.58
5.3.210.0170.04314.58
5.3.200.0170.06314.72
5.3.190.0100.06014.34
5.3.180.0030.05314.60
5.3.170.0000.05714.57
5.3.160.0100.04714.65
5.3.150.0100.04714.55
5.3.140.0230.06014.57
5.3.130.0000.06014.43
5.3.120.0030.05714.56
5.3.110.0100.05014.64
5.3.100.0100.04714.02
5.3.90.0130.04313.88
5.3.80.0100.04713.71
5.3.70.0070.05014.11
5.3.60.0030.05013.69
5.3.50.0070.05013.96
5.3.40.0030.05313.95
5.3.30.0070.05013.75
5.3.20.0070.05013.60
5.3.10.0100.04313.65
5.3.00.0030.05013.65
5.2.170.0070.03711.07
5.2.160.0070.03711.05
5.2.150.0030.05711.16
5.2.140.0070.04011.15
5.2.130.0030.04710.86
5.2.120.0070.03711.11
5.2.110.0070.04311.11
5.2.100.0030.04011.14
5.2.90.0100.05311.18
5.2.80.0070.04010.99
5.2.70.0130.03310.92
5.2.60.0070.03711.20
5.2.50.0000.04711.03
5.2.40.0070.05310.92
5.2.30.0000.04310.98
5.2.20.0100.04710.96
5.2.10.0100.04011.01
5.2.00.0030.04010.64
5.1.60.0030.0339.93
5.1.50.0030.03710.19
5.1.40.0070.03010.04
5.1.30.0070.03310.23
5.1.20.0030.04010.35
5.1.10.0100.03010.12
5.1.00.0070.03310.02
5.0.50.0030.0378.60
5.0.40.0000.0308.43
5.0.30.0100.0378.45
5.0.20.0030.0308.25
5.0.10.0070.0238.36
5.0.00.0000.0438.21
4.4.90.0070.0176.36
4.4.80.0000.0236.36
4.4.70.0070.0236.36
4.4.60.0070.0276.36
4.4.50.0070.0276.36
4.4.40.0030.0336.36
4.4.30.0030.0206.36
4.4.20.0070.0176.36
4.4.10.0000.0336.36
4.4.00.0000.0376.36
4.3.110.0000.0306.36
4.3.100.0070.0176.36
4.3.90.0030.0206.36
4.3.80.0030.0306.36
4.3.70.0030.0206.36
4.3.60.0030.0206.36
4.3.50.0000.0236.36
4.3.40.0000.0336.36
4.3.30.0070.0236.36
4.3.20.0000.0236.36
4.3.10.0030.0206.36
4.3.00.0130.0207.17

preferences:
51.8 ms | 401 KiB | 5 Q