3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [178, 89, 1]; echo array_reduce($array, function ($acc, $byte) { return $acc.strrev(str_pad(decbin($byte), 8, 0, STR_PAD_LEFT)); });

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.10.0080.00019.45
8.3.140.0070.00716.50
8.3.130.0110.00718.18
8.3.120.0040.00420.91
8.3.110.0030.01220.94
8.3.100.0030.00618.21
8.3.90.0070.01126.77
8.3.80.0090.00016.75
8.3.70.0060.01316.75
8.3.60.0150.00616.63
8.3.50.0100.00724.58
8.3.40.0100.01018.80
8.3.30.0090.00618.73
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.260.0090.00016.54
8.2.250.0040.00416.69
8.2.240.0060.00316.91
8.2.230.0070.01122.58
8.2.220.0040.01124.06
8.2.210.0150.00426.77
8.2.200.0060.00316.75
8.2.190.0120.00916.58
8.2.180.0150.00025.92
8.2.170.0130.00618.79
8.2.160.0110.00322.96
8.2.150.0000.00725.66
8.2.140.0110.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00826.35
8.2.110.0030.00620.56
8.2.100.0120.00017.48
8.2.90.0040.00417.63
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0080.00017.50
8.2.50.0040.00417.93
8.2.40.0000.00819.35
8.2.30.0080.00017.94
8.2.20.0040.00418.05
8.2.10.0000.00819.23
8.2.00.0040.00419.20
8.1.310.0000.01516.51
8.1.300.0030.00517.88
8.1.290.0080.00430.84
8.1.280.0070.00725.92
8.1.270.0080.00024.05
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.39
8.1.230.0080.00422.66
8.1.220.0000.00917.78
8.1.210.0080.00022.18
8.1.200.0050.00317.13
8.1.190.0030.00517.11
8.1.180.0080.00018.10
8.1.170.0000.00717.62
8.1.160.0070.00018.94
8.1.150.0000.00718.95
8.1.140.0050.00320.57
8.1.130.0030.00520.14
8.1.120.0030.00517.50
8.1.110.0040.00417.52
8.1.100.0030.00617.35
8.1.90.0030.00617.45
8.1.80.0000.01017.47
8.1.70.0000.00717.44
8.1.60.0040.00417.55
8.1.50.0030.00617.41
8.1.40.0040.00417.57
8.1.30.0040.00417.55
8.1.20.0000.00817.65
8.1.10.0070.00417.55
8.1.00.0050.00317.34
8.0.300.0040.00419.65
8.0.290.0030.00616.75
8.0.280.0000.00720.24
8.0.270.0040.00417.96
8.0.260.0000.00620.11
8.0.250.0000.00716.85
8.0.240.0000.00616.96
8.0.230.0000.00716.86
8.0.220.0030.00316.89
8.0.210.0050.00316.78
8.0.200.0030.00316.84
8.0.190.0040.00416.94
8.0.180.0040.00416.82
8.0.170.0040.00416.89
8.0.160.0040.00416.93
8.0.150.0000.00716.89
8.0.140.0040.00416.89
8.0.130.0000.00513.32
8.0.120.0040.00416.88
8.0.110.0050.00216.84
8.0.100.0070.00016.93
8.0.90.0070.00016.95
8.0.80.0130.00316.88
8.0.70.0040.00316.76
8.0.60.0000.00716.69
8.0.50.0040.00416.90
8.0.30.0100.00717.23
8.0.20.0120.00817.04
8.0.10.0040.00417.03
8.0.00.0180.00616.91
7.4.330.0000.00515.55
7.4.320.0040.00416.45
7.4.300.0000.00816.61
7.4.290.0000.00716.50
7.4.280.0000.00816.44
7.4.270.0030.00316.58
7.4.260.0000.00513.17
7.4.250.0030.00516.61
7.4.240.0000.00616.51
7.4.230.0000.00716.63
7.4.220.0030.00316.54
7.4.210.0060.01116.49
7.4.200.0040.00416.39
7.4.130.0130.00816.46
7.4.120.0100.01316.55
7.4.110.0060.01316.51
7.4.100.0070.01016.59
7.4.90.0060.01216.52
7.4.80.0140.00916.52
7.4.70.0110.00616.45
7.4.60.0140.00416.64
7.4.50.0100.00716.05
7.4.40.0150.00616.26
7.4.30.0090.00916.51
7.4.20.0170.00416.39
7.4.10.0070.01016.43
7.4.00.0120.00616.54
7.3.330.0000.00716.16
7.3.320.0050.00013.30
7.3.310.0070.00016.20
7.3.300.0030.00316.17
7.3.290.0080.00916.31
7.3.280.0110.00616.32
7.3.260.0090.00916.50
7.3.230.0060.01216.57
7.3.210.0070.01016.55
7.3.200.0130.01016.21
7.3.190.0130.00316.36
7.3.180.0160.00416.51
7.3.170.0070.01016.27
7.3.160.0120.00616.23
7.3.150.0140.00316.50
7.3.140.0040.01316.47
7.3.130.0030.01316.36
7.3.120.0100.00616.26
7.3.110.0080.00816.32
7.3.100.0110.00616.26
7.3.90.0100.00716.40
7.3.80.0070.01016.23
7.3.70.0090.00616.37
7.3.60.0150.00316.32
7.3.50.0150.00316.27
7.3.40.0090.00916.32
7.3.30.0060.01216.41
7.3.20.0090.00916.28
7.3.10.0120.00616.34
7.3.00.0090.00916.41
7.2.330.0040.01416.69
7.2.320.0160.00716.21
7.2.310.0140.00816.43
7.2.300.0090.00816.76
7.2.290.0110.00716.62
7.2.280.0100.00716.48
7.2.270.0070.01116.78
7.2.260.0090.00916.66
7.2.250.0060.01216.60
7.2.240.0120.00616.46
7.2.230.0100.00716.66
7.2.220.0090.00916.68
7.2.210.0100.00716.43
7.2.200.0070.01016.44
7.2.190.0150.00316.60
7.2.180.0100.01016.59
7.2.170.0120.00616.52
7.2.160.0090.00916.28
7.2.150.0150.00316.58
7.2.140.0190.00016.61
7.2.130.0060.01216.66
7.2.120.0100.01016.54
7.2.110.0100.00716.45
7.2.100.0090.00916.63
7.2.90.0090.00916.40
7.2.80.0090.00916.56
7.2.70.0130.00716.67
7.2.60.0070.01116.46
7.2.50.0070.01416.63
7.2.40.0040.01416.57
7.2.30.0040.01416.66
7.2.20.0140.00416.46
7.2.10.0120.00616.46
7.2.00.0150.00316.61

preferences:
27.86 ms | 403 KiB | 5 Q