3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = ' - "True Monitoring Range" #29 - windows checker units"'; function hasInlineCommentInSequence($line) { if (strpos(ltrim($line), '-') !== 0) { return false; } $trimmed = trim($line); $hashPos = strpos($trimmed, ' #'); if ($hashPos === false) { return false; } $count = substr_count($trimmed, '"', 0, $hashPos); return ($count % 2) === 0; } var_dump(hasInlineCommentInSequence($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.60.0070.00718.43
8.3.50.0110.00416.36
8.3.40.0040.01118.81
8.3.30.0100.01018.67
8.3.20.0040.00420.27
8.3.10.0080.00023.66
8.3.00.0040.00419.43
8.2.180.0140.00718.11
8.2.170.0120.00622.96
8.2.160.0140.00719.04
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00020.94
8.2.120.0040.00426.35
8.2.110.0060.00321.00
8.2.100.0110.00017.72
8.2.90.0030.00519.08
8.2.80.0060.00318.05
8.2.70.0050.00317.63
8.2.60.0030.00517.80
8.2.50.0040.00418.10
8.2.40.0040.00420.55
8.2.30.0040.00421.11
8.2.20.0050.00218.12
8.2.10.0000.00718.00
8.2.00.0060.00318.11
8.1.280.0110.00425.92
8.1.270.0040.00422.05
8.1.260.0000.00926.35
8.1.250.0000.00728.09
8.1.240.0060.00319.13
8.1.230.0080.00419.22
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.36
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0000.00718.92
8.1.150.0070.00218.91
8.1.140.0040.00419.50
8.1.130.0030.00318.84
8.1.120.0000.00717.34
8.1.110.0000.00817.35
8.1.100.0070.00417.34
8.1.90.0000.00917.38
8.1.80.0040.00417.38
8.1.70.0030.00317.39
8.1.60.0050.00317.52
8.1.50.0040.00417.51
8.1.40.0060.00617.38
8.1.30.0080.00017.48
8.1.20.0040.00417.63
8.1.10.0050.00217.52
8.1.00.0000.00817.47
8.0.300.0050.00319.88
8.0.290.0080.00016.63
8.0.280.0040.00418.34
8.0.270.0000.00717.26
8.0.260.0000.00716.82
8.0.250.0000.00616.85
8.0.240.0090.00016.83
8.0.230.0040.00316.88
8.0.220.0070.00016.86
8.0.210.0060.00016.85
8.0.200.0070.00016.93
8.0.190.0110.00016.99
8.0.180.0040.00416.93
8.0.170.0030.00316.97
8.0.160.0030.00416.88
8.0.150.0000.00916.93
8.0.140.0050.00316.83
8.0.130.0030.00313.32
8.0.120.0000.00716.81
8.0.110.0050.00216.90
8.0.100.0000.00716.80
8.0.90.0000.00816.79
8.0.80.0090.00616.89
8.0.70.0000.00716.87
8.0.60.0070.00016.70
8.0.50.0030.00316.71
8.0.30.0090.01017.25
8.0.20.0120.00717.40
8.0.10.0080.00017.01
8.0.00.0170.00016.77
7.4.330.0050.00015.55
7.4.320.0000.00716.52
7.4.300.0000.00616.57
7.4.290.0040.00416.57
7.4.280.0000.00916.48
7.4.270.0030.00316.61
7.4.260.0000.00716.52
7.4.250.0050.00316.36
7.4.240.0000.00716.36
7.4.230.0070.00016.69
7.4.220.0140.00316.57
7.4.210.0110.00616.53
7.4.200.0000.00716.67
7.4.160.0080.00916.42
7.4.150.0060.01517.40
7.4.140.0130.00717.86
7.4.130.0080.00816.61
7.4.120.0120.01016.53
7.4.110.0100.00616.55
7.4.100.0070.01016.56
7.4.90.0110.00616.44
7.4.80.0040.01519.39
7.4.70.0100.00716.63
7.4.60.0070.00716.38
7.4.50.0030.01316.46
7.4.40.0080.00816.59
7.4.30.0080.00816.42
7.4.00.0060.00614.85
7.3.330.0000.00913.35
7.3.320.0000.00613.36
7.3.310.0050.00316.43
7.3.300.0000.00716.38
7.3.290.0020.01116.36
7.3.280.0090.00916.37
7.3.270.0000.01917.40
7.3.260.0100.00716.54
7.3.250.0150.00416.55
7.3.240.0120.00716.34
7.3.230.0160.00316.57
7.3.210.0100.00816.66
7.3.200.0090.01216.38
7.3.190.0090.00616.40
7.3.180.0080.00816.46
7.3.170.0150.00616.50
7.3.160.0030.01316.60
7.2.330.0030.02316.33
7.2.320.0070.01716.57
7.2.310.0150.00916.69
7.2.300.0070.01016.67
7.2.290.0080.00816.39
7.2.60.0090.00316.82
7.2.00.0090.00619.54
7.1.200.0030.01015.87
7.1.100.0040.00717.89
7.1.70.0080.00516.93
7.1.60.0160.01335.19
7.1.50.0170.01034.97
7.1.40.0170.01034.41
7.1.30.0130.01634.48
7.1.20.0150.01534.64
7.1.10.0060.00916.51
7.1.00.0030.01016.46
7.0.200.0130.00016.86
7.0.190.0080.00516.68
7.0.180.0070.00716.12
7.0.170.0080.00616.18
7.0.160.0030.01016.28
7.0.150.0000.01416.18
7.0.140.0040.00916.18
7.0.130.0100.00316.48
7.0.120.0070.00716.48
7.0.110.0060.00616.38
7.0.100.0000.01316.21
7.0.90.0060.00616.53
7.0.80.0090.00316.29
7.0.70.0000.01216.27
7.0.60.0100.00315.91
7.0.50.0000.01216.53
7.0.40.0000.01216.50
7.0.30.0030.00916.43
7.0.20.0060.00616.51
7.0.10.0030.00916.52
7.0.00.0090.00616.65

preferences:
37.08 ms | 401 KiB | 5 Q