3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "ZEESHAN"; $reverse = ""; for($i = strlen($string)-1; $i >= 0; $i++){ $reverse .= $string[$i]; } echo $reverse;

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.0100.01316.50
8.3.50.0240.00921.15
8.3.40.0130.00618.83
8.3.30.0040.01118.55
8.3.20.0190.01020.29
8.3.10.0220.00523.56
8.3.00.0040.00423.48
8.2.180.0370.01118.54
8.2.170.0310.01522.96
8.2.160.0130.00920.20
8.2.150.0070.00324.18
8.2.140.0080.00824.66
8.2.130.0180.00019.77
8.2.120.0000.00726.35
8.2.110.0220.00419.22
8.2.100.0120.00317.78
8.2.90.0110.00019.05
8.2.80.0000.01217.97
8.2.70.0060.00317.63
8.2.60.0040.00918.04
8.2.50.0040.00818.10
8.2.40.0100.00320.60
8.2.30.0100.00019.50
8.2.20.0090.00217.75
8.2.10.0050.00518.15
8.2.00.0080.00318.17
8.1.280.0070.00725.92
8.1.270.0110.00423.82
8.1.260.0090.00328.09
8.1.250.0080.01128.09
8.1.240.0120.00422.46
8.1.230.0090.00417.89
8.1.220.0040.01117.74
8.1.210.0030.00618.77
8.1.200.0100.00317.22
8.1.190.0060.00617.00
8.1.180.0040.00818.10
8.1.170.0060.00618.51
8.1.160.0040.00820.76
8.1.150.0160.00018.87
8.1.140.0060.00619.53
8.1.130.0100.00017.61
8.1.120.0060.00317.43
8.1.110.0030.00717.48
8.1.100.0000.01017.45
8.1.90.0000.01117.42
8.1.80.0000.01017.48
8.1.70.0000.00717.38
8.1.60.0110.00417.59
8.1.50.0030.00717.48
8.1.40.0040.00417.42
8.1.30.0110.00417.59
8.1.20.0110.00417.64
8.1.10.0000.00817.64
8.1.00.0070.00617.43
8.0.300.0090.00318.77
8.0.290.0040.00716.63
8.0.280.0110.00318.32
8.0.270.0080.00817.15
8.0.260.0130.00017.01
8.0.250.0100.00316.80
8.0.240.0050.00516.79
8.0.230.0040.00416.89
8.0.220.0040.00416.79
8.0.210.0000.01116.80
8.0.200.0070.00016.89
8.0.190.0070.00416.82
8.0.180.0000.01416.83
8.0.170.0030.00616.84
8.0.160.0050.00516.71
8.0.150.0000.00716.77
8.0.140.0130.00016.70
8.0.130.0000.00613.24
8.0.120.0030.00616.69
8.0.110.0000.00816.75
8.0.100.0000.01016.83
8.0.90.0000.00816.83
8.0.80.0000.01716.81
8.0.70.0050.00316.79
8.0.60.0070.00016.72
8.0.50.0060.00316.79
8.0.30.0320.01316.95
8.0.20.0390.01617.40
8.0.10.0110.00516.93
8.0.00.0360.01016.50
7.4.330.0000.00616.76
7.4.320.0060.00616.46
7.4.300.0080.00416.31
7.4.290.0080.00416.36
7.4.280.0130.00416.39
7.4.270.0060.00616.26
7.4.260.0080.00416.39
7.4.250.0060.00616.28
7.4.240.0030.00516.35
7.4.230.0090.00016.43
7.4.220.0440.00816.35
7.4.210.0180.00816.36
7.4.200.0000.00716.21
7.4.160.0400.01616.39
7.4.150.0400.01517.40
7.4.140.0510.01117.86
7.4.130.0400.02216.43
7.4.120.0310.01516.48
7.4.110.0650.05816.14
7.4.100.0470.00316.30
7.4.90.0230.01416.26
7.4.80.0110.01419.39
7.4.70.0870.00916.35
7.4.60.0160.00916.42
7.4.50.0080.00516.28
7.4.40.0450.01216.36
7.4.30.0330.02616.45
7.3.330.0131.98613.14
7.3.320.0071.99413.18
7.3.310.0040.00916.26
7.3.300.0070.00016.29
7.3.290.0070.00716.27
7.3.280.0120.01116.32
7.3.270.0420.01017.40
7.3.260.0130.01316.26
7.3.240.0220.01216.29
7.3.230.1030.02116.39
7.3.210.0230.02016.30
7.3.200.0110.01619.39
7.3.190.0080.01316.20
7.3.180.0230.01516.48
7.3.170.0170.01416.41
7.3.160.0740.03916.34
7.2.330.0220.00916.72
7.2.320.0200.02816.31
7.2.310.0590.00816.36
7.2.300.0310.02516.70
7.2.290.0080.01716.56

preferences:
64.33 ms | 401 KiB | 5 Q