3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "a"; for ($i = 0; $i < 255; $i++) { echo bin2hex(++$foo) . PHP_EOL; }

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.30.0120.00720.04
8.5.20.0120.00720.26
8.5.10.0130.00619.93
8.5.00.0150.00919.87
8.4.180.0130.00919.38
8.4.170.0130.00820.41
8.4.160.0120.00824.00
8.4.150.0040.00316.86
8.4.140.0100.01117.45
8.4.130.0130.00917.63
8.4.120.0080.01120.12
8.4.110.0120.00922.26
8.4.100.0120.00918.45
8.4.90.0110.01118.61
8.4.80.0110.00617.59
8.4.70.0050.00418.01
8.4.60.0120.00918.96
8.4.50.0120.00918.48
8.4.40.0180.00319.38
8.4.30.0100.01020.67
8.4.20.0060.00319.57
8.4.10.0050.00520.41
8.3.300.0060.00320.66
8.3.290.0130.00820.79
8.3.280.0110.00918.18
8.3.270.0150.00716.51
8.3.260.0140.00616.79
8.3.250.0130.00718.86
8.3.240.0130.00716.81
8.3.230.0120.00316.61
8.3.220.0060.00317.16
8.3.210.0110.00216.54
8.3.200.0050.00516.60
8.3.190.0100.01317.17
8.3.180.0050.00316.62
8.3.170.0150.00318.92
8.3.160.0180.00017.11
8.3.150.0040.00420.92
8.3.140.0160.00316.34
8.3.130.0030.00616.55
8.3.120.0120.00320.77
8.3.110.0090.00016.75
8.3.100.0040.00418.38
8.3.90.0080.00826.77
8.3.80.0090.00016.75
8.3.70.0110.00416.58
8.3.60.0110.01118.43
8.3.50.0070.01719.98
8.3.40.0140.00719.04
8.3.30.0090.00619.26
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0030.00726.16
8.2.300.0130.00922.14
8.2.290.0100.00920.25
8.2.280.0110.00820.48
8.2.270.0110.00720.28
8.2.260.0000.00816.74
8.2.250.0030.00716.46
8.2.240.0040.00416.34
8.2.230.0030.00620.94
8.2.220.0030.00524.06
8.2.210.0040.01126.77
8.2.200.0070.00316.50
8.2.190.0140.00016.63
8.2.180.0180.00025.92
8.2.170.0120.00418.83
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0070.00320.35
8.2.100.0060.00320.53
8.1.340.0110.00921.58
8.1.330.0110.00722.19
8.1.320.0100.01016.06
8.1.310.0070.00716.54
8.1.300.0030.00616.51
8.1.290.0040.00430.84
8.1.280.0120.00325.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0100.00018.64
8.1.230.0030.00618.83
8.1.30.0070.00417.62

preferences:
43.81 ms | 1067 KiB | 5 Q