3v4l.org

run code in 300+ PHP versions simultaneously
<?php function endswith($string, $test) { $strlen = strlen($string); $testlen = strlen($test); if ($testlen > $strlen) return false; return substr_compare($string, $test, -$testlen) === 0; } if(false == endswith('http://localhost/events/10','/events/')){ echo 'true'; } else{ echo 'false'; }

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.0040.01116.50
8.3.50.0160.00617.38
8.3.40.0120.00318.80
8.3.30.0000.01418.67
8.3.20.0060.00318.64
8.3.10.0050.00320.36
8.3.00.0040.00417.37
8.2.180.0120.00916.63
8.2.170.0100.00722.96
8.2.160.0170.00322.18
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00419.96
8.2.110.0070.00321.03
8.2.100.0080.00417.72
8.2.90.0060.00319.40
8.2.80.0050.00219.40
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0060.00318.16
8.2.30.0050.00318.19
8.2.20.0030.00617.74
8.2.10.0030.00517.64
8.2.00.0040.00417.74
8.1.280.0060.01225.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00328.09
8.1.240.0060.00322.52
8.1.230.0080.00420.83
8.1.220.0030.00517.74
8.1.210.0070.00418.77
8.1.200.0000.00817.35
8.1.190.0070.00017.39
8.1.180.0090.00018.10
8.1.170.0090.00018.76
8.1.160.0070.00018.80
8.1.150.0000.00718.62
8.1.140.0080.00017.33
8.1.130.0000.00717.84
8.1.120.0030.00417.51
8.1.110.0040.00417.43
8.1.100.0070.00017.47
8.1.90.0000.00817.45
8.1.80.0040.00417.53
8.1.70.0030.00317.38
8.1.60.0100.00017.66
8.1.50.0040.00417.41
8.1.40.0000.00717.55
8.1.30.0040.00417.68
8.1.20.0000.00817.57
8.1.10.0040.00417.43
8.1.00.0040.00417.49
8.0.300.0040.00419.90
8.0.290.0000.00716.63
8.0.280.0000.00718.39
8.0.270.0070.00017.14
8.0.260.0000.00816.84
8.0.250.0000.00716.85
8.0.240.0070.00316.87
8.0.230.0050.00216.89
8.0.220.0070.00016.84
8.0.210.0040.00416.90
8.0.200.0030.00316.94
8.0.190.0070.00016.99
8.0.180.0040.00316.93
8.0.170.0030.00616.84
8.0.160.0030.00316.86
8.0.150.0030.00616.81
8.0.140.0030.00516.88
8.0.130.0070.00013.38
8.0.120.0000.00916.84
8.0.110.0060.00316.94
8.0.100.0000.00716.92
8.0.90.0000.00716.78
8.0.80.0060.00916.82
8.0.70.0000.00716.71
8.0.60.0070.00016.72
8.0.50.0050.00216.78
8.0.30.0120.00717.13
8.0.20.0100.01116.91
8.0.10.0040.00417.09
8.0.00.0090.01216.82
7.4.330.0000.00512.91
7.4.320.0030.00616.54
7.4.300.0000.00616.61
7.4.290.0040.00416.57
7.4.280.0080.00016.52
7.4.270.0030.00316.61
7.4.260.0030.00313.29
7.4.250.0000.00916.49
7.4.240.0070.00016.37
7.4.230.0000.00716.62
7.4.220.0120.00616.66
7.4.210.0090.00716.62
7.4.200.0030.00316.27
7.4.190.0030.00316.72
7.4.160.0040.01916.39
7.4.150.0170.00016.58
7.4.140.0130.00616.57
7.4.130.0080.01316.59
7.4.120.0120.00516.54
7.4.110.0060.01316.73
7.4.100.0070.01416.64
7.4.90.0040.01316.50
7.4.80.0100.01316.54
7.4.70.0080.01016.55
7.4.60.0080.01116.47
7.4.50.0000.00916.22
7.4.40.0020.00916.39
7.4.30.0060.01016.43
7.4.00.0060.00914.69
7.3.330.0000.00613.39
7.3.320.0030.00313.38
7.3.310.0070.00016.42
7.3.300.0000.00716.34
7.3.290.0090.00616.29
7.3.280.0080.00916.38
7.3.270.0090.00916.43
7.3.260.0140.00716.37
7.3.250.0050.01316.45
7.3.240.0220.00316.63
7.3.230.0070.01716.45
7.3.210.0110.00716.54
7.3.200.0130.01019.39
7.3.190.0070.01416.25
7.3.180.0060.00916.29
7.3.170.0100.00616.52
7.3.160.0000.01516.52
7.3.120.0060.00614.97
7.3.10.0120.00316.02
7.3.00.0090.00316.58
7.2.330.0090.00916.71
7.2.320.0030.01416.62
7.2.310.0140.01016.71
7.2.300.0100.01016.64
7.2.290.0070.01016.56
7.2.130.0040.00716.79
7.2.120.0110.00316.44
7.2.110.0150.00416.72
7.2.100.0070.01116.80
7.2.90.0120.00616.68
7.2.80.0150.00316.71
7.2.70.0130.01016.63
7.2.60.0070.00716.71
7.2.50.0060.01016.64
7.2.40.0160.01016.80
7.2.30.0100.00716.77
7.2.20.0120.00316.91
7.2.10.0120.01216.81
7.2.00.0050.00918.18
7.1.250.0140.00315.52
7.1.100.0000.01518.27
7.1.70.0070.00217.09
7.1.60.0060.00917.03
7.1.50.0130.00717.01
7.1.40.0000.01216.34
7.1.30.0050.00816.74
7.1.20.0000.01216.70
7.1.10.0080.00416.52
7.1.00.0000.00816.53
7.0.200.0000.00916.82
7.0.190.0050.00516.69
7.0.180.0000.01016.20
7.0.170.0040.00416.25
7.0.160.0050.00816.38
7.0.150.0030.00516.49
7.0.140.0040.00416.43
7.0.130.0000.01216.54
7.0.120.0030.00916.74
7.0.110.0040.00716.46
7.0.100.0000.00816.31
7.0.90.0000.00816.44
7.0.80.0030.00516.47
7.0.70.0000.00916.44
7.0.60.0000.00816.28
7.0.50.0070.00416.22
7.0.40.0080.00315.21
7.0.30.0000.00715.21
7.0.20.0040.00415.21
7.0.10.0030.00715.21
7.0.00.0070.00415.21
5.6.300.0070.04020.80
5.6.290.0070.03720.77
5.6.280.0030.05120.89
5.6.270.0030.04520.91
5.6.260.0000.05020.97
5.6.250.0030.04020.90
5.6.240.0060.05521.07
5.6.230.0100.03620.86
5.6.220.0030.04720.81
5.6.210.0090.03521.03
5.6.200.0030.04321.03
5.6.190.0000.04420.77
5.6.180.0030.03920.74
5.6.170.0070.06520.99
5.6.160.0070.03720.82
5.6.150.0000.05820.98
5.6.140.0030.04820.77
5.6.130.0000.04920.95
5.6.120.0000.04821.03
5.6.110.0030.04120.82
5.6.100.0030.04320.81
5.6.90.0060.04120.79
5.6.80.0030.04220.22
5.6.70.0060.03720.11
5.6.60.0000.04620.42
5.6.50.0230.03920.22
5.6.40.0000.04520.15
5.6.30.0060.03620.15
5.6.20.0000.04620.29
5.6.10.0000.04420.18
5.6.00.0000.04820.17
5.5.380.0100.03317.58
5.5.370.0070.07017.53
5.5.360.0040.04317.53
5.5.350.0030.04017.57
5.5.340.0000.04317.71
5.5.330.0070.03918.04
5.5.320.0070.03718.14
5.5.310.0000.06418.13
5.5.300.0000.04618.00
5.5.290.0060.04518.20
5.5.280.0000.04618.09
5.5.270.0100.04017.99
5.5.260.0030.04418.07
5.5.250.0030.04217.65
5.5.240.0030.04017.25
5.5.230.0030.04217.39
5.5.220.0030.03817.50
5.5.210.0070.03417.43
5.5.200.0000.04417.20
5.5.190.0200.04017.44
5.5.180.0030.03817.09
5.5.160.0070.03617.41
5.5.150.0060.04017.44
5.5.140.0000.04817.44
5.5.130.0070.04117.05
5.5.120.0060.03617.36
5.5.110.0160.03017.18
5.5.100.0030.04117.37
5.5.90.0070.03517.09
5.5.80.0030.03617.01
5.5.70.0070.03816.95
5.5.60.0000.04417.25
5.5.50.0100.03617.34
5.5.40.0000.06117.29
5.5.30.0030.06516.95
5.5.20.0100.07317.27
5.5.10.0030.04317.36
5.5.00.0030.04117.32
5.4.450.0070.04319.41
5.4.440.0060.04119.52
5.4.430.0160.02919.27
5.4.420.0000.04519.43
5.4.410.0070.03919.12
5.4.400.0030.04118.93
5.4.390.0000.05119.00
5.4.380.0000.04619.25
5.4.370.0030.04018.99
5.4.360.0000.04318.98
5.4.350.0030.04519.07
5.4.340.0030.04519.07
5.4.320.0000.04319.08
5.4.310.0030.04219.08
5.4.300.0100.03819.22
5.4.290.0030.04218.92
5.4.280.0000.04519.06
5.4.270.0090.03418.95
5.4.260.0060.03818.98
5.4.250.0070.03418.98
5.4.240.0090.03118.97
5.4.230.0070.03319.07
5.4.220.0040.04018.97
5.4.210.0030.04419.22
5.4.200.0000.04319.20
5.4.190.0000.04219.01
5.4.180.0030.04219.06
5.4.170.0100.03219.19
5.4.160.0070.05319.21
5.4.150.0030.03819.12
5.4.140.0030.04516.70
5.4.130.0110.03016.53
5.4.120.0030.05516.51
5.4.110.0030.03916.59
5.4.100.0000.03916.48
5.4.90.0030.04216.50
5.4.80.0040.03516.70
5.4.70.0070.03716.39
5.4.60.0100.07016.72
5.4.50.0030.03616.70
5.4.40.0030.04516.78
5.4.30.0040.03316.71
5.4.20.0000.07016.67
5.4.10.0100.04816.67
5.4.00.0060.04015.96
5.3.290.0130.03215.21
5.3.280.0000.03915.21
5.3.270.0030.03815.21
5.3.260.0000.06715.21
5.3.250.0090.03215.21
5.3.240.0070.04215.21
5.3.230.0030.03815.21
5.3.220.0000.04015.21
5.3.210.0070.04315.21
5.3.200.0070.03315.21
5.3.190.0030.04115.21
5.3.180.0000.06315.21
5.3.170.0030.05215.21
5.3.160.0000.04715.21
5.3.150.0030.04415.21
5.3.140.0060.03415.21
5.3.130.0060.03615.21
5.3.120.0070.06315.21
5.3.110.0140.04415.21
5.3.100.0130.02615.21
5.3.90.0060.03915.21
5.3.80.0060.03315.21
5.3.70.0000.04415.21
5.3.60.0030.03715.21
5.3.50.0040.03515.21
5.3.40.0000.04215.21
5.3.30.0090.03315.21
5.3.20.0000.05715.21
5.3.10.0100.04615.21
5.3.00.0090.02815.21
5.2.170.0070.03115.21
5.2.160.0030.02715.21
5.2.150.0040.02815.21
5.2.140.0040.02915.21
5.2.130.0060.05815.21
5.2.120.0160.02615.21
5.2.110.0000.06315.21
5.2.100.0030.06115.21
5.2.90.0000.05615.21
5.2.80.0060.02815.21
5.2.70.0030.05915.21
5.2.60.0000.04115.21
5.2.50.0090.06015.21
5.2.40.0030.02915.21
5.2.30.0060.03015.21
5.2.20.0030.03015.21
5.2.10.0060.02515.21
5.2.00.0000.03215.21
5.1.60.0070.02315.21
5.1.50.0060.02215.21
5.1.40.0030.02615.21
5.1.30.0030.02615.21
5.1.20.0030.04415.21
5.1.10.0060.03215.21
5.1.00.0030.02515.21
5.0.50.0000.02315.21
5.0.40.0000.03115.21
5.0.30.0270.02715.21
5.0.20.0000.02215.21
5.0.10.0000.02215.21
5.0.00.0000.03515.21
4.4.90.0000.03115.21
4.4.80.0000.01915.21
4.4.70.0000.02315.21
4.4.60.0030.01315.21
4.4.50.0000.01915.21
4.4.40.0060.02015.21
4.4.30.0030.01815.21
4.4.20.0030.02215.21
4.4.10.0030.02415.21
4.4.00.0000.03515.21
4.3.110.0030.02115.21
4.3.100.0030.01715.21
4.3.90.0000.01615.21
4.3.80.0030.02315.21
4.3.70.0030.02215.21
4.3.60.0040.01515.21
4.3.50.0000.01715.21
4.3.40.0000.02515.21
4.3.30.0030.03815.21
4.3.20.0040.01415.21
4.3.10.0000.01715.21
4.3.00.0040.03615.21

preferences:
52.42 ms | 401 KiB | 5 Q