3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); assert(str_contains('Ahoy World!', 'Ahoy') === true); assert(str_contains('Ahoy World!', 'Hello') === false); assert(str_starts_with('Ahoy World!', 'Ahoy') === true); assert(str_starts_with('AhoyWorld', 'Hello') === false); assert(str_ends_with('Ahoy World!', 'World!') === true); assert(str_ends_with('Ahoy World!', 'Ahoy') === 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.4.20.0100.01019.53
8.4.10.0050.00319.23
8.3.150.0040.01216.87
8.3.140.0080.01116.61
8.3.130.0030.00616.49
8.3.120.0060.00320.60
8.3.110.0060.00320.94
8.3.100.0070.01024.06
8.3.90.0120.00926.77
8.3.80.0030.00616.38
8.3.70.0140.00718.18
8.3.60.0070.01118.31
8.3.50.0120.00524.44
8.3.40.0040.01118.88
8.3.30.0100.00618.65
8.3.20.0070.00024.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.260.0100.00719.96
8.2.250.0140.00416.38
8.2.240.0090.00017.14
8.2.230.0070.01122.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0040.00716.63
8.2.190.0070.01116.58
8.2.180.0070.01425.92
8.2.170.0140.00718.81
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00421.08
8.2.110.0060.00320.35
8.2.100.0110.00017.78
8.2.90.0080.00017.89
8.2.80.0080.00019.09
8.2.70.0060.00317.80
8.2.60.0040.00418.08
8.2.50.0050.00318.10
8.2.40.0000.00818.98
8.2.30.0070.00019.10
8.2.20.0040.00418.00
8.2.10.0000.00719.11
8.2.00.0040.00419.14
8.1.310.0040.00418.42
8.1.300.0040.00816.00
8.1.290.0030.00630.84
8.1.280.0170.00025.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00623.86
8.1.230.0110.00020.72
8.1.220.0000.00917.74
8.1.210.0000.00918.77
8.1.200.0080.00017.00
8.1.190.0080.00017.11
8.1.180.0030.00618.10
8.1.170.0000.00818.49
8.1.160.0000.00818.88
8.1.150.0030.00718.71
8.1.140.0020.00518.74
8.1.130.0050.00320.10
8.1.120.0000.00717.38
8.1.110.0070.00017.25
8.1.100.0080.00017.38
8.1.90.0040.00417.31
8.1.80.0040.00417.34
8.1.70.0060.00017.15
8.1.60.0030.00517.38
8.1.50.0040.00417.36
8.1.40.0040.00417.40
8.1.30.0050.00317.40
8.1.20.0050.00317.48
8.1.10.0050.00517.45
8.1.00.0040.00417.36
8.0.300.0000.00720.21
8.0.290.0080.00016.58
8.0.280.0040.00418.31
8.0.270.0030.00316.81
8.0.260.0000.00618.30
8.0.250.0000.00816.78
8.0.240.0000.00716.76
8.0.230.0070.00016.86
8.0.220.0030.00316.69
8.0.210.0000.00616.71
8.0.200.0070.00016.91
8.0.190.0070.00016.89
8.0.180.0040.00416.76
8.0.170.0090.00016.84
8.0.160.0000.00716.88
8.0.150.0040.00316.69
8.0.140.0040.00416.79
8.0.130.0030.00313.18
8.0.120.0070.00016.68
8.0.110.0000.00716.86
8.0.100.0000.00716.70
8.0.90.0030.00316.69
8.0.80.0080.00616.84
8.0.70.0040.00416.83
8.0.60.0030.00516.77
8.0.50.0070.00016.64
8.0.30.0070.01017.02
8.0.20.0100.01317.24
8.0.10.0000.00716.79
8.0.00.0130.00616.77
7.4.330.0000.00415.55
7.4.320.0060.00016.55
7.4.300.0080.00016.59
7.4.290.0030.00516.36
7.4.280.0040.00416.46
7.4.270.0030.00316.59
7.4.260.0000.00513.27
7.4.250.0040.00416.52
7.4.240.0030.00316.54
7.4.230.0000.00716.57
7.4.220.0020.00516.40
7.4.210.0060.00816.48
7.4.200.0060.00416.53
7.4.130.0120.00816.31
7.4.120.0130.01316.41
7.4.110.0030.01216.67
7.4.100.0100.00716.54
7.4.90.0070.01416.46
7.4.80.0060.01219.39
7.4.70.0050.01516.49
7.4.60.0090.00716.47
7.4.50.0070.01016.42
7.4.40.0100.01216.55
7.4.30.0030.01516.71
7.4.20.0100.01016.60
7.4.10.0090.01516.40
7.4.00.0090.01016.48
7.3.330.0070.00016.41
7.3.320.0020.00213.18
7.3.310.0070.00016.48
7.3.300.0040.00416.36
7.3.290.0030.01316.36
7.3.280.0040.01216.39
7.3.260.0170.00016.18
7.3.230.0040.01616.38
7.3.210.0100.00716.59
7.3.200.0070.01016.23
7.3.190.0080.00816.45
7.3.180.0060.01216.39
7.3.170.0090.01016.32
7.3.160.0070.01216.31
7.3.150.0070.01516.44
7.3.140.0100.00816.53
7.3.130.0170.00316.39
7.3.120.0040.01316.36
7.3.110.0100.00716.45
7.3.100.0090.00716.43
7.3.90.0110.00816.30
7.3.80.0060.01316.36
7.3.70.0070.01216.38
7.3.60.0100.00716.39
7.3.50.0110.00716.32
7.3.40.0120.00716.32
7.3.30.0100.00616.30
7.3.20.0060.01116.37
7.3.10.0090.00716.25
7.3.00.0110.00716.23
7.2.330.0060.01216.34
7.2.320.0090.00616.44
7.2.310.0120.00716.49
7.2.300.0100.01416.46
7.2.290.0030.01516.46
7.2.280.0120.01016.39
7.2.270.0070.01116.54
7.2.260.0100.01116.41
7.2.250.0080.01016.54
7.2.240.0110.00616.55
7.2.230.0080.01016.46
7.2.220.0050.01216.39
7.2.210.0100.01216.42
7.2.200.0050.01316.36
7.2.190.0120.00616.35
7.2.180.0090.00816.40
7.2.170.0080.00916.43
7.2.160.0040.01216.42
7.2.150.0090.00916.43
7.2.140.0110.00916.47
7.2.130.0070.01316.55
7.2.120.0170.00116.44
7.2.110.0090.01116.47
7.2.100.0120.00816.44
7.2.90.0130.00716.40
7.2.80.0240.00716.52
7.2.70.0100.00716.43
7.2.60.0070.01316.40
7.2.50.0080.01016.36
7.2.40.0110.01116.58
7.2.30.0100.00916.46
7.2.20.0110.00916.35
7.2.10.0070.01216.50
7.2.00.0110.00716.41

preferences:
35.29 ms | 403 KiB | 5 Q