3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This dude is a good man"; $bad = array('truck','shot','etc'); $flag='0'; foreach($bad as $word){ if(in_array($word,$string)) { $flag=1; } } if($flag==1) echo "Exist"; else echo "Not Exist";

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.10.0100.00816.82
8.5.00.0140.00820.00
8.4.150.0030.00014.05
8.4.140.0120.01017.73
8.4.130.0140.00717.89
8.4.120.0060.00220.46
8.4.110.0060.01522.19
8.4.100.0110.00817.85
8.4.90.0140.00618.13
8.4.80.0140.01019.50
8.4.70.0100.00919.74
8.4.60.0130.00919.79
8.4.50.0110.01022.29
8.4.40.0130.00717.92
8.4.30.0130.00720.40
8.4.20.0080.01219.94
8.4.10.0090.00019.76
8.3.280.0110.00918.61
8.3.270.0120.00816.93
8.3.260.0060.00616.89
8.3.250.0090.00718.70
8.3.240.0050.00417.39
8.3.230.0110.00716.63
8.3.220.0110.00718.47
8.3.210.0100.00416.80
8.3.200.0130.00616.86
8.3.190.0090.00816.93
8.3.180.0040.00516.86
8.3.170.0070.01018.98
8.3.160.0110.00718.61
8.3.150.0060.01218.46
8.3.140.0080.00019.11
8.3.130.0000.00818.70
8.3.120.0060.00320.86
8.3.110.0030.00618.32
8.3.100.0080.00018.63
8.3.90.0040.00426.77
8.3.80.0100.00316.63
8.3.70.0110.01118.55
8.3.60.0120.00916.75
8.3.50.0070.00924.48
8.3.40.0100.01021.86
8.3.30.0100.00318.71
8.3.20.0050.00324.18
8.3.10.0030.00524.66
8.3.00.0030.00626.16
8.2.290.0120.00720.53
8.2.280.0100.00918.75
8.2.270.0070.01117.31
8.2.260.0000.00916.74
8.2.250.0070.00018.23
8.2.240.0030.00617.14
8.2.230.0000.00920.94
8.2.220.0040.00424.06
8.2.210.0180.00326.77
8.2.200.0060.00318.68
8.2.190.0140.00316.63
8.2.180.0170.00325.92
8.2.170.0100.00718.91
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0090.00022.11
8.2.100.0080.00417.78
8.2.90.0060.00317.88
8.2.80.0050.00318.95
8.2.70.0090.00018.00
8.2.60.0000.00918.03
8.2.50.0050.00318.10
8.2.40.0000.00821.11
8.2.30.0000.00719.32
8.2.20.0040.00417.95
8.2.10.0080.00019.20
8.2.00.0080.00019.31
8.1.330.0080.00821.83
8.1.320.0110.00816.45
8.1.310.0070.01018.51
8.1.300.0070.00720.37
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0000.00823.99
8.1.260.0070.00028.09
8.1.250.0030.00528.09
8.1.240.0000.01023.96
8.1.230.0120.00021.02
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0080.00017.22
8.1.190.0030.00517.48
8.1.180.0030.00618.10
8.1.170.0040.00418.70
8.1.160.0040.00418.96
8.1.150.0060.00318.90
8.1.140.0040.00418.98
8.1.130.0050.00219.22
8.1.120.0000.00717.37
8.1.110.0040.00417.37
8.1.100.0070.00017.35
8.1.90.0040.00417.47
8.1.80.0030.00617.36
8.1.70.0030.00317.45
8.1.60.0060.00617.48
8.1.50.0040.00417.58
8.1.40.0050.00317.58
8.1.30.0050.00317.55
8.1.20.0000.00817.53
8.1.10.0000.00717.63
8.1.00.0050.00317.54
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0080.00018.34
8.0.270.0030.00516.88
8.0.260.0040.00416.81
8.0.250.0000.00717.00
8.0.240.0030.00317.04
8.0.230.0000.00817.03
8.0.220.0030.00317.02
8.0.210.0040.00416.90
8.0.200.0000.00716.92
8.0.190.0040.00417.03
8.0.180.0000.00716.87
8.0.170.0000.00816.98
8.0.160.0030.00417.05
8.0.150.0000.00816.83
8.0.140.0040.00416.95
8.0.130.0030.00313.41
8.0.120.0070.00016.92
8.0.110.0040.00417.01
8.0.100.0050.00316.79
8.0.90.0040.00416.91
8.0.80.0090.00916.89
8.0.70.0000.00716.83
8.0.60.0000.00716.85
8.0.50.0040.00417.02
8.0.30.0130.00316.94
8.0.20.0030.01617.03
8.0.10.0070.00016.99
8.0.00.0070.02116.78
7.4.330.0060.00015.55
7.4.320.0000.00616.53
7.4.300.0060.00316.56
7.4.290.0000.00716.48
7.4.280.0000.00716.58
7.4.270.0060.00316.63
7.4.260.0050.00013.29
7.4.250.0030.00516.48
7.4.240.0040.00416.44
7.4.230.0070.00016.26
7.4.220.0030.00316.63
7.4.210.0070.01016.59
7.4.200.0070.00016.70
7.4.130.0250.00316.54
7.4.120.0200.00816.31
7.4.110.0070.01316.23
7.4.100.0170.00616.46
7.4.90.0080.01516.37
7.4.80.0170.01016.60
7.4.70.0090.00916.58
7.4.60.0130.00616.42
7.4.50.0100.01016.54
7.4.40.0030.01516.56
7.4.30.0160.00816.48
7.4.20.0070.01316.50
7.4.10.0120.00816.41
7.4.00.0070.01816.45
7.3.330.0000.00616.15
7.3.320.0050.00013.05
7.3.310.0040.00416.42
7.3.300.0040.00416.35
7.3.290.0080.00916.29
7.3.260.0120.00816.22
7.3.250.0100.01416.36
7.3.240.0000.02216.55
7.3.230.0150.00716.39
7.3.220.0120.00816.41
7.3.210.0120.01516.45
7.3.200.0130.01316.35
7.3.190.0100.01016.44
7.3.180.0140.00516.28
7.3.170.0110.00716.53
7.3.160.0030.01616.20
7.3.150.0080.01116.32
7.3.140.0140.01116.50
7.3.130.0150.00916.51
7.3.120.0060.01916.42
7.3.110.0110.01116.26
7.3.100.0130.00616.24
7.3.90.0140.00716.52
7.3.80.0110.01116.29
7.3.70.0160.00416.53
7.3.60.0070.01116.35
7.3.50.0120.00816.44
7.3.40.0180.00616.30
7.3.30.0080.01116.36
7.3.20.0110.01216.37
7.3.10.0170.00316.29
7.3.00.0160.00316.52

preferences:
40.63 ms | 403 KiB | 5 Q