3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string_1 = "AnaHasSomeApples"; // we need to add $string_1 = "HsSomeApples"; // we need to add $string_1 = "HasApplesAlready"; // already exists at the beginning $string_1 = (substr( $string_1 , 0, 3 ) !== "https") ? "Has".$string_1:$string_1; echo $string_1; ?>

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.120.0070.01120.51
8.3.110.0040.00416.50
8.3.100.0080.00024.06
8.3.90.0080.00626.77
8.3.80.0060.00316.13
8.3.70.0150.00018.55
8.3.60.0090.00916.50
8.3.50.0140.00319.98
8.3.40.0070.00718.84
8.3.30.0090.00918.54
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.240.0040.00417.14
8.2.230.0080.00020.94
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0030.00616.50
8.2.190.0000.01516.58
8.2.180.0090.00925.92
8.2.170.0070.00719.02
8.2.160.0130.00722.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0100.00020.56
8.2.100.0060.00617.82
8.2.90.0080.00017.50
8.2.80.0000.00818.73
8.2.70.0000.00817.63
8.2.60.0040.00417.63
8.2.50.0060.00317.98
8.2.40.0040.00418.28
8.2.30.0050.00217.93
8.2.20.0040.00420.41
8.2.10.0000.00717.99
8.2.00.0000.01019.21
8.1.300.0090.00617.80
8.1.290.0080.00030.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00023.58
8.1.230.0040.00820.73
8.1.220.0060.00318.67
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0080.00017.23
8.1.180.0090.00618.10
8.1.170.0080.00017.62
8.1.160.0020.00520.62
8.1.150.0080.00018.52
8.1.140.0040.00417.26
8.1.130.0070.00020.67
8.1.120.0040.00417.36
8.1.110.0000.00717.25
8.1.100.0040.00317.39
8.1.90.0070.00017.32
8.1.80.0070.00317.40
8.1.70.0030.00317.38
8.1.60.0000.00817.55
8.1.50.0100.00317.35
8.1.40.0090.00217.39
8.1.30.0030.01017.52
8.1.20.0080.00417.51
8.1.10.0150.00917.45
8.1.00.0110.00317.41
8.0.300.0000.00718.77
8.0.290.0090.00016.62
8.0.280.0080.00018.45
8.0.270.0000.00716.80
8.0.260.0030.00318.43
8.0.250.0030.00316.94
8.0.240.0080.00016.96
8.0.230.0000.00716.96
8.0.220.0030.00316.73
8.0.210.0030.00316.93
8.0.200.0040.00416.96
8.0.190.0040.00416.94
8.0.180.0090.00416.93
8.0.170.0090.00316.87
8.0.160.0140.00316.78
8.0.150.0150.00416.77
8.0.140.0140.00516.83
8.0.130.0210.00016.82
8.0.120.0150.00616.87
8.0.110.0170.00316.86
8.0.100.0100.01016.85
8.0.90.0160.00416.72
8.0.80.0160.00516.74
8.0.70.0180.00416.61
8.0.60.0150.00316.81
8.0.50.0120.00816.70
8.0.30.0130.00816.67
8.0.20.0110.00716.74
8.0.10.0110.00216.89
7.4.330.0060.00015.55
7.4.320.0030.00316.48
7.4.300.0030.00316.52
7.4.290.0200.00016.54
7.4.280.0160.00716.47
7.4.270.0130.01016.39
7.4.260.0190.00416.50
7.4.250.0230.00016.45
7.4.240.0070.01416.39
7.4.230.0090.00316.59
7.4.220.0050.00516.57
7.4.210.0080.00016.60
7.4.200.0060.00316.39
7.4.190.0060.00616.44
7.4.180.0100.00616.60
7.4.160.0050.01416.46
7.4.150.0100.00716.52
7.4.140.0140.00416.43
7.4.130.0140.00416.38
7.4.120.0090.00616.43
7.4.110.0090.00516.30
7.4.100.0100.00716.32
7.4.90.0080.00816.43
7.4.80.0120.00616.41
7.4.70.0120.00616.38
7.4.60.0060.01316.32
7.4.50.0060.00616.20
7.4.40.0080.00816.42
7.4.30.0120.00016.43
7.4.20.0130.00016.45
7.4.10.0130.00016.55
7.4.00.0120.00016.51

preferences:
49.58 ms | 403 KiB | 5 Q