3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Mr N/A N/A'; if(strpos(trim($string),'N/A') !== false || strpos(trim($string), 'Concern') !== false) { return 'To Home'; } else { return $string ? 'Hi ' . $string : $string; }

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.40.0150.00618.45
8.3.30.0150.00318.37
8.3.20.0000.00820.31
8.3.10.0060.00321.83
8.3.00.0040.00419.55
8.2.170.0120.00622.96
8.2.160.0000.01418.99
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00219.38
8.2.120.0050.00226.35
8.2.110.0030.00621.99
8.2.100.0080.00417.91
8.2.90.0000.00718.09
8.2.80.0000.00717.97
8.2.70.0040.00417.50
8.2.60.0040.00417.75
8.2.50.0080.00017.93
8.2.40.0060.00319.25
8.2.30.0040.00419.31
8.2.20.0040.00418.10
8.2.10.0000.00718.10
8.2.00.0030.00518.09
8.1.270.0080.00022.13
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.97
8.1.230.0070.00421.04
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.63
8.1.190.0030.00617.23
8.1.180.0030.00618.10
8.1.170.0000.00717.63
8.1.160.0040.00419.10
8.1.150.0100.00018.91
8.1.140.0070.00019.55
8.1.130.0000.01118.89
8.1.120.0000.00717.49
8.1.110.0030.00517.43
8.1.100.0000.00817.48
8.1.90.0050.00317.36
8.1.80.0030.00317.28
8.1.70.0020.00517.38
8.1.60.0040.00417.51
8.1.50.0000.00817.55
8.1.40.0040.00417.50
8.1.30.0030.00617.62
8.1.20.0000.00717.70
8.1.10.0000.00817.35
8.1.00.0000.00817.41
8.0.300.0000.00720.21
8.0.290.0000.00716.74
8.0.280.0000.00718.45
8.0.270.0000.00717.15
8.0.260.0030.00316.80
8.0.250.0000.00716.95
8.0.240.0040.00416.98
8.0.230.0060.00316.92
8.0.220.0030.00316.87
8.0.210.0040.00416.92
8.0.200.0040.00416.97
8.0.190.0040.00417.02
8.0.180.0000.00716.96
8.0.170.0070.00016.90
8.0.160.0030.00516.97
8.0.150.0040.00416.92
8.0.140.0040.00416.73
8.0.130.0030.00313.37
8.0.120.0000.00716.89
8.0.110.0070.00016.76
8.0.100.0000.00716.77
8.0.90.0050.00216.88
8.0.80.0090.00916.86
8.0.70.0070.00016.70
8.0.60.0040.00416.92
8.0.50.0030.00516.95
8.0.30.0110.00517.08
8.0.20.0110.00917.40
8.0.10.0000.00716.97
8.0.00.0100.00716.90
7.4.330.0000.00715.55
7.4.320.0000.00616.57
7.4.300.0030.00316.48
7.4.290.0030.00316.41
7.4.280.0050.00316.48
7.4.270.0000.00716.59
7.4.260.0040.00416.44
7.4.250.0040.00416.46
7.4.240.0050.00216.35
7.4.230.0030.00316.44
7.4.220.0100.01016.38
7.4.210.0080.00816.45
7.4.200.0030.00316.34
7.4.160.0080.01116.35
7.4.150.0290.01117.40
7.4.140.0120.00717.86
7.4.130.0140.01116.39
7.4.120.0080.01016.56
7.3.330.0050.00012.94
7.3.320.0030.00313.03
7.3.310.0030.00316.25
7.3.300.0070.00016.22
7.3.290.0060.00816.22
7.3.280.0090.00816.21
7.3.270.0170.00317.40
7.3.260.0120.01016.28
7.3.250.0110.00616.31
7.3.240.0120.00816.30

preferences:
47.11 ms | 400 KiB | 5 Q