3v4l.org

run code in 300+ PHP versions simultaneously
<?php $paddedContentType = ' ' . 'this'; $isJavascriptPresent = strpos(strtolower($paddedContentType), 'javascript'); if ($isJavascriptPresent !== false || $isJavascriptPresent == 0) { echo 'yeah its there'; }

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.0070.00718.30
8.3.50.0110.00417.94
8.3.40.0070.00718.71
8.3.30.0040.01118.65
8.3.20.0040.00419.04
8.3.10.0040.00423.63
8.3.00.0060.00320.45
8.2.180.0120.00617.96
8.2.170.0060.01322.96
8.2.160.0100.01020.26
8.2.150.0040.00424.18
8.2.140.0060.00924.66
8.2.130.0170.00018.03
8.2.120.0070.00026.35
8.2.110.0060.00321.18
8.2.100.0130.00317.91
8.2.90.0050.00317.63
8.2.80.0080.00017.97
8.2.70.0050.00317.92
8.2.60.0000.00718.22
8.2.50.0000.00818.10
8.2.40.0030.00519.35
8.2.30.0040.00419.24
8.2.20.0070.00018.10
8.2.10.0040.00418.04
8.2.00.0000.00817.59
8.1.280.0140.00025.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0040.00422.06
8.1.230.0080.00422.12
8.1.220.0080.00017.74
8.1.210.0050.00518.77
8.1.200.0060.00317.48
8.1.190.0090.00017.22
8.1.180.0040.00418.10
8.1.170.0080.00018.70
8.1.160.0050.00318.77
8.1.150.0000.00818.86
8.1.140.0000.00722.13
8.1.130.0000.00820.12
8.1.120.0000.00817.34
8.1.110.0070.00017.37
8.1.100.0070.00017.46
8.1.90.0040.00417.45
8.1.80.0040.00417.41
8.1.70.0030.00717.45
8.1.60.0030.00717.59
8.1.50.0050.00317.51
8.1.40.0070.00317.53
8.1.30.0100.00017.51
8.1.20.0000.00717.60
8.1.10.0050.00317.48
8.1.00.0080.00317.39
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0000.00818.34
8.0.270.0040.00417.16
8.0.260.0030.00318.42
8.0.250.0040.00416.95
8.0.240.0000.00616.98
8.0.230.0050.00216.85
8.0.220.0040.00416.77
8.0.210.0000.00716.82
8.0.200.0030.00316.93
8.0.190.0000.00716.95
8.0.180.0030.00516.87
8.0.170.0090.00016.94
8.0.160.0080.00016.91
8.0.150.0000.00716.80
8.0.140.0040.00416.77
8.0.130.0060.00013.39
8.0.120.0030.00516.67
8.0.110.0000.00716.86
8.0.100.0040.00416.91
8.0.90.0000.00716.74
8.0.80.0060.00916.88
8.0.70.0040.00416.77
8.0.60.0030.00516.99
8.0.50.0080.00016.67
8.0.30.0080.00917.07
8.0.20.0110.01117.40
8.0.10.0070.00017.03
8.0.00.0070.01016.86
7.4.330.0070.00015.55
7.4.320.0000.00716.58
7.4.300.0060.00016.59
7.4.290.0030.00316.56
7.4.280.0060.00316.50
7.4.270.0040.00416.39
7.4.260.0000.00716.34
7.4.250.0040.00416.44
7.4.240.0030.00316.43
7.4.230.0030.00316.48
7.4.220.0000.00816.32
7.4.210.0110.00816.55
7.4.200.0000.00716.48
7.4.160.0040.01316.46
7.4.140.0130.00917.86
7.4.130.0100.00716.29
7.4.120.0110.00716.51
7.4.110.0040.01516.45
7.4.100.0060.01016.47
7.4.90.0070.01016.36
7.4.80.0140.00719.39
7.4.70.0110.00616.42
7.4.60.0090.00916.39
7.4.50.0070.01016.52
7.4.40.0080.00916.30
7.4.00.0030.01414.93
7.3.330.0050.00013.03
7.3.320.0050.00012.98
7.3.310.0040.00416.10
7.3.300.0000.00716.23
7.3.290.0070.00016.09
7.3.280.0040.01116.18
7.3.260.0110.00916.38
7.3.240.0140.00616.34
7.3.230.0100.00716.39
7.3.210.0100.00616.43
7.3.200.0090.01216.35
7.3.190.0120.01116.21
7.3.180.0130.00616.17
7.3.170.0110.00816.15
7.3.160.0070.01116.25
7.2.330.0120.00616.69
7.2.320.0070.01116.59
7.2.310.0150.00316.71
7.2.300.0060.01116.29
7.2.290.0030.01616.46
7.2.110.0610.00214.59
7.2.100.0600.00414.51
7.2.90.0370.01314.75
7.2.80.0670.01014.64
7.2.70.0720.00614.64
7.2.60.0670.00314.95
7.2.50.0820.00714.97
7.2.40.0720.00314.70
7.2.30.0750.00614.64
7.2.20.0690.01214.91
7.2.10.0540.00714.42
7.2.00.0740.00614.72
7.1.230.0550.00713.65
7.1.220.0870.00614.00
7.1.210.0740.00013.91
7.1.200.1090.01013.69
7.1.190.0970.01013.70
7.1.180.0670.00713.68
7.1.170.0790.01413.92
7.1.160.0730.00713.78
7.1.150.0750.00313.52
7.1.140.1150.00313.80
7.1.130.0830.00914.01
7.1.120.1050.01013.48
7.1.110.0620.01314.10
7.1.100.0810.00914.07
7.1.90.0650.01013.86
7.1.80.0650.01214.00
7.1.70.0790.01213.87
7.1.60.0920.01331.92
7.1.50.1440.01031.79
7.1.40.1020.00731.84
7.1.30.1120.00631.68
7.1.20.1330.00932.05
7.1.10.0890.01514.02
7.1.00.0920.00314.05
5.6.380.0090.00614.39

preferences:
60.39 ms | 401 KiB | 5 Q