3v4l.org

run code in 300+ PHP versions simultaneously
<?php $poor_geek = "H A R R Y P O T T E R"; $voldemort = "Lord Voldemort"; function avada_kedavra(string $fullname): string { if (strpos($fullname, " ") !== false) $fullname = preg_replace("{ (?! )}", "", $fullname); return strtok($fullname, " "); } echo avada_kedavra($poor_geek), " is dead\n"; echo avada_kedavra($voldemort), " cannot die\n";

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.0040.00419.77
8.4.10.0000.01117.71
8.3.150.0040.01516.81
8.3.140.0060.00317.03
8.3.130.0100.00018.29
8.3.120.0080.00018.82
8.3.110.0040.00420.94
8.3.100.0080.00016.78
8.3.90.0040.00426.77
8.3.80.0030.00618.56
8.3.70.0110.00418.14
8.3.60.0090.01216.63
8.3.50.0120.00716.82
8.3.40.0080.00818.85
8.3.30.0070.00718.76
8.3.20.0000.00820.00
8.3.10.0040.00423.48
8.3.00.0060.00323.71
8.2.260.0110.00718.74
8.2.250.0040.00416.70
8.2.240.0080.00019.20
8.2.230.0000.00822.58
8.2.220.0040.01237.54
8.2.210.0040.00426.77
8.2.200.0030.00618.88
8.2.190.0070.00717.13
8.2.180.0150.00316.75
8.2.170.0200.00022.96
8.2.160.0110.00419.47
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00822.28
8.2.120.0000.00826.35
8.2.110.0030.00719.30
8.2.100.0120.00018.03
8.2.90.0080.00019.09
8.2.80.0000.00817.97
8.2.70.0070.00517.63
8.2.60.0080.00017.93
8.2.50.0000.01018.10
8.2.40.0040.00420.41
8.2.30.0040.00419.34
8.2.20.0040.00418.07
8.2.10.0000.00818.14
8.2.00.0000.00717.96
8.1.310.0050.00316.93
8.1.300.0060.00318.68
8.1.290.0040.00430.84
8.1.280.0000.01425.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00321.05
8.1.230.0070.00417.83
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00818.77
8.1.160.0000.00818.91
8.1.150.0030.00520.65
8.1.140.0070.00017.65
8.1.130.0030.00318.84
8.1.120.0050.00217.53
8.1.110.0030.00517.55
8.1.100.0000.00717.38
8.1.90.0040.00417.53
8.1.80.0030.00317.49
8.1.70.0000.00717.50
8.1.60.0040.00417.77
8.1.50.0040.00417.70
8.1.40.0040.00417.66
8.1.30.0040.00417.69
8.1.20.0040.00417.72
8.1.10.0040.00417.72
8.1.00.0000.00817.55
8.0.300.0100.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.39
8.0.270.0000.00717.32
8.0.260.0000.00716.96
8.0.250.0000.00817.04
8.0.240.0000.00717.16
8.0.230.0070.00016.93
8.0.220.0080.00016.86
8.0.210.0030.00316.84
8.0.200.0000.00716.93
8.0.190.0030.00316.97
8.0.180.0000.00717.00
8.0.170.0070.00017.02
8.0.160.0070.00016.87
8.0.150.0000.01016.88
8.0.140.0000.00716.99
8.0.130.0000.00513.40
8.0.120.0050.00216.97
8.0.110.0000.00716.95
8.0.100.0040.00417.02
8.0.90.0000.00716.78
8.0.80.0080.00816.95
8.0.70.0030.00516.80
8.0.60.0040.00417.04
8.0.50.0050.00216.80
8.0.30.0120.00617.05
8.0.20.0060.01417.40
8.0.10.0000.00717.07
8.0.00.0080.00817.18
7.4.330.0030.00316.87
7.4.320.0000.00916.58
7.4.300.0000.00716.72
7.4.290.0060.00016.81
7.4.280.0040.00416.80
7.4.270.0070.00016.73
7.4.260.0030.00316.56
7.4.250.0030.00516.70
7.4.240.0000.00716.80
7.4.230.0000.00816.86
7.4.220.0030.01516.75
7.4.210.0100.00616.66
7.4.200.0080.00016.62
7.4.160.0090.00616.68
7.4.150.0190.00017.40
7.4.140.0050.01517.86
7.4.130.0150.00316.75
7.4.120.0090.00916.81
7.4.110.0130.00316.61
7.4.100.0120.00916.64
7.4.90.0080.00816.75
7.4.80.0170.00019.39
7.4.70.0090.00916.63
7.4.60.0090.00916.63
7.4.50.0030.01316.69
7.4.40.0040.01216.73
7.4.30.0070.01416.92
7.4.00.0060.00915.03
7.3.330.0030.00313.30
7.3.320.0000.00613.40
7.3.310.0000.00716.40
7.3.300.0050.00316.50
7.3.290.0100.00916.43
7.3.280.0090.00816.41
7.3.270.0090.00917.40
7.3.260.0080.01116.61
7.3.250.0060.01116.49
7.3.240.0100.00916.51
7.3.230.0060.01216.73
7.3.210.0140.00316.82
7.3.200.0030.01316.49
7.3.190.0070.01016.69
7.3.180.0100.01016.40
7.3.170.0120.00416.44
7.3.160.0090.00616.66
7.2.330.0070.01016.59
7.2.320.0000.01816.77
7.2.310.0140.00816.93
7.2.300.0060.01316.83
7.2.290.0000.01616.64
7.2.60.0000.00816.88
7.1.200.0120.00015.85
7.1.110.0150.00618.22
7.1.100.0120.00818.47
7.1.90.0090.01618.06
7.1.80.0060.01718.54
7.1.70.0150.00417.37
7.1.60.0210.01835.27
7.1.50.0210.01735.12
7.1.40.0300.01034.64
7.1.30.0230.01234.41
7.1.20.0220.01234.75
7.1.10.0060.01016.81
7.1.00.0090.00916.76
7.0.250.0100.01317.70
7.0.240.0170.00418.03
7.0.230.0120.01118.15
7.0.220.0080.01117.98
7.0.210.0030.01416.74
7.0.200.0120.00616.82
7.0.190.0090.00916.96
7.0.180.0140.00316.14
7.0.170.0130.00316.45
7.0.160.0030.01416.28
7.0.150.0090.00616.43
7.0.140.0060.01216.64
7.0.130.0070.01316.62
7.0.120.0030.01716.54
7.0.110.0040.01216.59
7.0.100.0060.00916.48
7.0.90.0100.01016.49
7.0.80.0060.01016.56
7.0.70.0090.00616.36
7.0.60.0030.01016.14
7.0.50.0060.00916.57
7.0.40.0000.01416.65
7.0.30.0000.01516.54
7.0.20.0070.00716.50
7.0.10.0060.00916.67
7.0.00.0070.00716.76

preferences:
62.77 ms | 403 KiB | 5 Q