3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bytes = 1024 ** 5; for ($i = 0; ($bytes / 1024) > 0.9; $i++) { $bytes /= 1024; } echo round($bytes, 2).' '.['B', 'KB', 'MB', 'GB', 'TB'][$i];

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.120.0110.00922.35
8.4.110.0060.00622.51
8.4.100.0070.00217.82
8.4.90.0120.00918.78
8.4.80.0140.00819.57
8.4.70.0050.00318.16
8.4.60.0140.00618.78
8.4.50.0130.00718.79
8.4.40.0150.00617.83
8.4.30.0160.00322.35
8.4.20.0060.01319.05
8.4.10.0120.00319.50
8.3.250.0120.00618.69
8.3.240.0130.00716.59
8.3.230.0100.01016.61
8.3.220.0060.01017.21
8.3.210.0120.00816.92
8.3.200.0050.00416.80
8.3.190.0040.00419.01
8.3.180.0050.01216.85
8.3.170.0140.00418.93
8.3.160.0060.01218.48
8.3.150.0110.00718.92
8.3.140.0070.01116.60
8.3.130.0000.01016.88
8.3.120.0130.00620.58
8.3.110.0030.00620.94
8.3.100.0130.00717.04
8.3.90.0040.00426.77
8.3.80.0090.00018.63
8.3.70.0110.00716.63
8.3.60.0090.00616.88
8.3.50.0180.00416.52
8.3.40.0070.00720.43
8.3.30.0000.01321.91
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0000.00726.16
8.2.290.0050.01320.35
8.2.280.0060.01318.21
8.2.270.0000.01517.35
8.2.260.0070.01120.17
8.2.250.0000.00819.07
8.2.240.0090.00617.14
8.2.230.0060.00922.58
8.2.220.0170.00324.06
8.2.210.0000.01126.77
8.2.200.0090.00018.53
8.2.190.0120.00618.30
8.2.180.0140.00325.92
8.2.170.0160.00318.98
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00219.77
8.2.110.0180.00420.25
8.2.100.0160.01019.22
8.2.90.0180.01819.06
8.2.80.0150.00818.71
8.2.70.0380.00318.52
8.2.60.0230.01718.66
8.2.50.0290.00418.75
8.2.40.0140.00018.82
8.2.30.0080.00418.93
8.2.20.0220.00718.83
8.2.10.0120.01618.82
8.2.00.0270.00618.80
8.1.330.0100.00921.89
8.1.320.0110.00818.56
8.1.310.0060.00316.41
8.1.300.0000.01016.07
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0200.01318.69
8.1.230.0270.01018.48
8.1.220.0160.01018.58
8.1.210.0160.00019.75
8.1.200.0190.00418.06
8.1.190.0120.00318.26
8.1.180.0160.00618.27
8.1.170.0100.00318.52
8.1.160.0120.01218.64
8.1.150.0220.00720.39
8.1.140.0080.01118.37
8.1.130.0200.01418.41
8.1.120.0130.01018.54
8.1.110.0040.01118.55
8.1.100.0260.00618.68
8.1.90.0270.01018.50
8.1.80.0160.00718.28
8.1.70.0260.00018.79
8.1.60.0110.00718.75
8.1.50.0230.01318.43
8.1.40.0160.01318.72
8.1.30.0160.01618.88
8.1.20.0270.01018.58
8.1.10.0170.00718.65
8.1.00.0080.02718.69
8.0.300.0310.00717.79
8.0.290.0260.00917.86
8.0.280.0200.00317.90
8.0.270.0130.01017.82
8.0.260.0210.01117.65
8.0.250.0270.00417.89
8.0.240.0310.00717.88
8.0.230.0220.00718.23
8.0.220.0180.01117.76
8.0.210.0180.01417.95
8.0.200.0190.00717.96
8.0.190.0200.00717.59
8.0.180.0250.00717.87
8.0.170.0070.00717.83
8.0.160.0310.00617.88
8.0.150.0210.01117.88
8.0.140.0160.00017.96
8.0.130.0120.00218.19
8.0.120.0210.00317.77
8.0.110.0260.00617.99
8.0.100.0280.00317.74
8.0.90.0000.01317.87
8.0.80.0140.00317.86
8.0.70.0260.00717.79
8.0.60.0130.00417.79
8.0.50.0160.01217.82
8.0.30.0150.01217.86
8.0.20.0250.01118.03
8.0.10.0310.00318.00

preferences:
59.48 ms | 403 KiB | 5 Q