3v4l.org

run code in 300+ PHP versions simultaneously
<?php function contains($text, $word) { return in_array($word, explode(' ', $text)) || in_array($word, explode(chr(160), $text)); } $tests = [ 'How are you?', 'Are you okay?', 'I think you are.' ]; foreach ($tests as $text) { echo "\n$text evaluates as "; var_export(contains($text, 'are')); }

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.0100.01018.55
8.3.50.0110.00318.27
8.3.40.0120.00318.70
8.3.30.0090.00618.57
8.3.20.0070.00021.82
8.3.10.0040.00420.30
8.3.00.0000.00720.58
8.2.180.0000.01516.63
8.2.170.0120.00322.96
8.2.160.0000.01419.33
8.2.150.0070.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0140.00020.73
8.2.110.0060.00320.52
8.2.100.0040.00717.72
8.2.90.0060.00318.16
8.2.80.0000.00817.97
8.2.70.0000.00817.93
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0040.00418.35
8.2.30.0000.00818.13
8.2.20.0050.00218.18
8.2.10.0070.00019.31
8.2.00.0070.00019.24
8.1.280.0070.00725.92
8.1.270.0030.00621.95
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0080.00023.84
8.1.230.0080.00420.97
8.1.220.0040.00417.74
8.1.210.0120.00018.95
8.1.200.0030.00517.22
8.1.190.0070.00317.23
8.1.180.0070.00318.10
8.1.170.0070.00018.71
8.1.160.0000.00818.97
8.1.150.0040.00418.90
8.1.140.0050.00222.67
8.1.130.0040.00417.38
8.1.120.0030.00317.50
8.1.110.0040.00417.44
8.1.100.0060.00617.50
8.1.90.0040.00417.47
8.1.80.0020.00517.50
8.1.70.0030.00317.36
8.1.60.0040.00417.61
8.1.50.0030.00617.56
8.1.40.0000.00817.45
8.1.30.0090.00317.64
8.1.20.0000.00817.54
8.1.10.0060.00317.54
8.1.00.0000.00717.48
8.0.300.0040.00420.04
8.0.290.0080.00016.63
8.0.280.0030.00318.38
8.0.270.0040.00417.20
8.0.260.0000.00616.82
8.0.250.0030.00317.03
8.0.240.0050.00216.97
8.0.230.0030.00516.84
8.0.220.0070.00016.90
8.0.210.0050.00216.93
8.0.200.0070.00016.98
8.0.190.0000.00916.99
8.0.180.0000.00716.98
8.0.170.0060.00316.93
8.0.160.0000.00816.82
8.0.150.0040.00416.84
8.0.140.0050.00316.84
8.0.130.0060.00013.34
8.0.120.0000.00816.80
8.0.110.0080.00016.86
8.0.100.0090.00016.80
8.0.90.0070.00016.88
8.0.80.0070.00816.88
8.0.70.0000.00716.89
8.0.60.0000.00716.88
8.0.50.0040.00416.86
8.0.30.0120.00617.02
8.0.20.0150.00417.38
8.0.10.0040.00416.99
8.0.00.0100.00916.94
7.4.330.0000.00515.55
7.4.320.0030.00316.54
7.4.300.0030.00316.50
7.4.290.0080.00016.59
7.4.280.0030.00516.49
7.4.270.0070.00016.60
7.4.260.0030.00316.49
7.4.250.0060.00316.59
7.4.240.0040.00416.58
7.4.230.0040.00416.62
7.4.220.0030.00316.66
7.4.210.0060.01016.62
7.4.200.0050.00216.65
7.4.130.0090.01216.48
7.4.120.0120.00616.43
7.4.110.0030.01516.66
7.4.100.0070.01416.64
7.4.90.0110.00716.60
7.4.80.0160.00019.39
7.4.70.0090.01316.62
7.4.60.0160.00316.59
7.4.50.0000.01816.36
7.4.40.0070.01116.36
7.4.00.0070.01014.97
7.3.330.0050.00313.32
7.3.320.0030.00313.40
7.3.310.0030.00316.38
7.3.300.0000.00616.32
7.3.290.0080.00716.34
7.3.280.0120.00316.45
7.3.260.0130.00516.46
7.3.240.0100.00916.53
7.3.230.0120.01216.34
7.3.210.0190.00416.46
7.3.200.0090.00916.51
7.3.190.0060.01116.49
7.3.180.0090.00616.45
7.3.170.0120.00316.54
7.3.160.0030.01216.39
7.3.70.0100.00314.80
7.3.60.0060.00614.93
7.3.50.0040.01114.50
7.3.40.0070.00714.70
7.3.30.0190.00014.61
7.3.20.0230.00314.58
7.3.10.0180.00714.70
7.3.00.0160.00314.91
7.2.330.0120.01216.61
7.2.320.0070.01116.79
7.2.310.0130.01016.75
7.2.300.0060.01016.50
7.2.290.0150.00316.52
7.2.200.0070.00415.05
7.2.190.0040.00814.95
7.2.180.0000.01514.86
7.2.170.0060.00915.11
7.2.160.0060.01014.75
7.2.150.0100.01715.18
7.2.140.0070.01414.66
7.2.130.0150.00414.79
7.2.120.0200.00715.02
7.2.110.0160.00315.09
7.2.100.0100.01314.98
7.2.90.0120.01215.21
7.2.80.0190.00315.02
7.2.70.0100.01314.95
7.2.60.0150.00615.06
7.2.50.0130.00715.13
7.2.40.0180.00614.80
7.2.30.0160.00615.24
7.2.20.0200.00615.07
7.2.10.0110.00714.85
7.2.00.0190.00615.14
7.1.300.0180.00414.00
7.1.290.0190.00313.94
7.1.280.0110.00713.63
7.1.270.0180.00714.00
7.1.260.0130.00814.01
7.1.250.0130.00613.72

preferences:
61.7 ms | 401 KiB | 5 Q