3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "ZpglnRxqenU"; $output = []; for ($i = 0;$i<strlen($str);$i++) { $output[] = str_repeat($str[$i], $i+1); } $output = ucwords(strtolower(implode('-',$output)),"-"); echo $output;

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.5.10.0100.00916.54
8.5.00.0120.01119.72
8.4.160.0170.00719.83
8.4.150.0020.00014.05
8.4.140.0050.00317.82
8.4.130.0100.01019.57
8.4.120.0090.01120.48
8.4.110.0110.00822.35
8.4.100.0070.00217.80
8.4.90.0120.00818.50
8.4.80.0120.00819.67
8.4.70.0110.01217.85
8.4.60.0120.01018.64
8.4.50.0110.00720.39
8.4.40.0000.01117.63
8.4.30.0110.00820.41
8.4.20.0110.00418.90
8.4.10.0030.00717.93
8.3.280.0150.00618.35
8.3.270.0130.01016.45
8.3.260.0050.00316.66
8.3.250.0120.00518.84
8.3.240.0070.00216.56
8.3.230.0080.01216.48
8.3.220.0100.00918.85
8.3.210.0090.00916.37
8.3.200.0040.00616.61
8.3.190.0030.00519.11
8.3.180.0130.00616.41
8.3.170.0120.00618.94
8.3.160.0060.01217.09
8.3.150.0030.00520.78
8.3.140.0040.00416.98
8.3.130.0040.00418.43
8.3.120.0030.00618.80
8.3.110.0060.00316.75
8.3.100.0070.00424.06
8.3.90.0040.00426.77
8.3.80.0030.00616.38
8.3.70.0040.01216.58
8.3.60.0130.00918.52
8.3.50.0140.00316.59
8.3.40.0060.00918.80
8.3.30.0090.00518.85
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.290.0080.01020.29
8.2.280.0110.00718.55
8.2.270.0090.00917.09
8.2.260.0140.00417.15
8.2.250.0000.00818.27
8.2.240.0110.00719.07
8.2.230.0130.00320.94
8.2.220.0060.00337.54
8.2.210.0110.00426.77
8.2.200.0050.00516.50
8.2.190.0090.01216.63
8.2.180.0090.00925.92
8.2.170.0140.00722.96
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00019.95
8.2.110.0030.00622.25
8.2.100.0000.01217.91
8.2.90.0000.00818.03
8.2.80.0030.00519.23
8.2.70.0040.00418.05
8.2.60.0070.00018.09
8.2.50.0080.00018.10
8.2.40.0050.00321.12
8.2.30.0040.00419.29
8.2.20.0040.00418.10
8.2.10.0070.00019.24
8.2.00.0030.00319.28
8.1.330.0120.00621.60
8.1.320.0130.00615.85
8.1.310.0070.00016.47
8.1.300.0100.00019.50
8.1.290.0000.00918.88
8.1.280.0070.01125.92
8.1.270.0070.00420.54
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00322.55
8.1.230.0040.00822.75
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00717.23
8.1.190.0060.00317.22
8.1.180.0060.00318.10
8.1.170.0060.00318.59
8.1.160.0050.00218.83
8.1.150.0000.00818.73
8.1.140.0000.00718.73
8.1.130.0000.00720.11
8.1.120.0030.00517.46
8.1.110.0030.00617.34
8.1.100.0040.00417.34
8.1.90.0050.00217.37
8.1.80.0030.00617.39
8.1.70.0030.00317.36
8.1.60.0030.00917.43
8.1.50.0000.00817.40
8.1.40.0000.00817.42
8.1.30.0040.00417.54
8.1.20.0060.00317.65
8.1.10.0060.00317.45
8.1.00.0080.00017.55
8.0.300.0080.00019.81
8.0.290.0050.00316.75
8.0.280.0000.00718.39
8.0.270.0070.00016.69
8.0.260.0030.00318.36
8.0.250.0030.00316.93
8.0.240.0030.00316.94
8.0.230.0000.00816.86
8.0.220.0000.00716.84
8.0.210.0000.00716.81
8.0.200.0060.00016.77
8.0.190.0030.00316.87
8.0.180.0000.00816.83
8.0.170.0000.00916.66
8.0.160.0000.00716.89
8.0.150.0040.00416.80
8.0.140.0040.00416.70
8.0.130.0030.00313.21
8.0.120.0000.00816.77
8.0.110.0080.00016.80
8.0.100.0040.00416.64
8.0.90.0040.00416.89
8.0.80.0060.01016.79
8.0.70.0070.00016.62
8.0.60.0040.00416.71
8.0.50.0050.00216.80
8.0.30.0220.00916.78
8.0.20.0230.01216.82
8.0.10.0160.01517.00
8.0.00.0100.01316.93
7.4.330.0020.00215.55
7.4.320.0000.00616.52
7.4.300.0060.00016.42
7.4.290.0040.00416.25
7.4.280.0040.00416.52
7.4.270.0070.00016.57
7.4.260.0040.00416.56
7.4.250.0040.00416.35
7.4.240.0000.00816.44
7.4.230.0000.00716.64
7.4.220.0040.00316.48
7.4.210.0100.00816.49
7.4.200.0000.00716.32
7.4.160.0190.00716.61
7.4.150.0270.00716.51
7.4.140.0250.00716.48
7.4.130.0150.01916.60
7.4.120.0210.01216.48
7.4.110.0190.00916.53
7.4.100.0190.01216.51
7.4.90.0170.01116.48
7.4.80.0270.01016.34
7.4.70.0210.00716.41
7.4.60.0210.00916.43
7.4.50.0210.01116.39
7.4.40.0210.00816.38
7.4.30.0210.00916.44
7.4.20.0260.00416.43
7.4.10.0280.00016.51
7.4.00.0150.01216.60
7.3.330.0030.00316.30
7.3.320.0060.00013.23
7.3.310.0000.00716.41
7.3.300.0030.00316.27
7.3.290.0090.00716.33
7.3.280.0270.00316.26
7.3.270.0250.00916.34
7.3.260.0260.01016.25
7.3.250.0310.00416.36
7.3.240.0230.00916.27
7.3.230.0700.00716.29
7.3.220.0270.00716.30
7.3.210.0220.00716.27
7.3.200.0270.00416.23
7.3.190.0270.00616.16
7.3.180.0260.00416.25
7.3.170.0150.01216.29
7.3.160.0080.02016.36
7.3.150.0270.00216.30
7.3.140.0250.00616.24
7.3.130.0190.01316.30
7.3.120.0180.00716.20
7.3.110.0210.00916.21
7.3.100.0210.00416.19
7.3.90.0260.00316.46
7.3.80.0190.00716.30
7.3.70.0190.00616.31
7.3.60.0210.00716.37
7.3.50.0120.01616.54
7.3.40.0230.00516.41
7.3.30.0190.01016.37
7.3.20.0320.01316.39
7.3.10.0190.00816.51
7.3.00.0180.00616.44

preferences:
34.07 ms | 403 KiB | 5 Q