3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 11; $base = 2; $stack = []; while( $num > 0) { array_push($stack,($num % $base)); // pushes remainder on stack $num = (int) ($num/$base); // no integer division } while($stack) { echo array_pop($stack); // 1011 in final iteration } echo "\n";

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.0200.00018.31
8.3.50.0080.01122.05
8.3.40.0140.00718.71
8.3.30.0120.00419.04
8.3.20.0070.00020.29
8.3.10.0140.00022.12
8.3.00.0080.00022.50
8.2.180.0180.00316.50
8.2.170.0070.00722.96
8.2.160.0140.00321.00
8.2.150.0040.00424.18
8.2.140.0080.01224.66
8.2.130.0000.00826.16
8.2.120.0120.00017.63
8.2.110.0030.00622.09
8.2.100.0060.00619.51
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0030.00518.07
8.2.20.0000.00817.69
8.2.10.0000.00817.68
8.2.00.0070.00317.68
8.1.280.0030.01725.92
8.1.270.0080.00022.19
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0030.00623.74
8.1.230.0070.00419.05
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0030.00517.28
8.1.180.0040.00418.79
8.1.170.0060.00318.61
8.1.160.0000.00721.96
8.1.150.0050.00218.52
8.1.140.0080.00017.34
8.1.130.0090.00017.86
8.1.120.0000.00717.42
8.1.110.0000.00717.41
8.1.100.0000.00817.45
8.1.90.0000.00717.48
8.1.80.0000.00717.48
8.1.70.0030.00317.45
8.1.60.0070.00317.63
8.1.50.0040.00417.49
8.1.40.0040.00417.42
8.1.30.0060.00317.57
8.1.20.0030.00517.65
8.1.10.0070.00017.51
8.1.00.0000.00717.36
8.0.300.0030.00318.77
8.0.290.0070.00016.93
8.0.280.0040.00418.43
8.0.270.0040.00417.14
8.0.260.0000.00616.82
8.0.250.0050.00217.00
8.0.240.0030.00316.92
8.0.230.0000.00716.91
8.0.220.0030.00316.96
8.0.210.0000.00716.87
8.0.200.0000.00616.82
8.0.190.0040.00417.01
8.0.180.0040.00416.81
8.0.170.0000.00716.93
8.0.160.0000.00716.79
8.0.150.0000.00716.70
8.0.140.0030.00316.79
8.0.130.0000.00613.34
8.0.120.0000.00716.89
8.0.110.0050.00216.84
8.0.100.0000.00716.81
8.0.90.0050.00316.89
8.0.80.0090.01216.79
8.0.70.0040.00416.91
8.0.60.0000.00716.79
8.0.50.0000.00816.75
8.0.30.0090.01017.18
8.0.20.0070.01117.43
8.0.10.0000.00817.01
8.0.00.0070.01016.73
7.4.330.0020.00215.10
7.4.320.0000.00616.53
7.4.300.0000.00716.61
7.4.290.0040.00416.38
7.4.280.0030.00316.41
7.4.270.0030.00316.58
7.4.260.0000.00716.60
7.4.250.0040.00416.40
7.4.240.0040.00316.50
7.4.230.0000.00716.59
7.4.220.0090.00616.55
7.4.210.0110.00316.51
7.4.200.0020.00516.39
7.4.190.0080.00016.56
7.4.160.0100.00716.38
7.4.150.0130.00917.40
7.4.140.0130.00617.86
7.4.130.0170.00316.57
7.4.120.0080.00916.60
7.4.110.0100.00716.58
7.4.100.0110.01016.43
7.4.90.0150.00316.38
7.4.80.0060.01619.39
7.4.70.0100.01116.27
7.4.60.0100.00716.64
7.4.50.0000.00916.21
7.4.40.0100.00622.77
7.4.30.0060.01016.59
7.4.00.0040.01415.14
7.3.330.0030.00313.19
7.3.320.0000.00513.06
7.3.310.0040.00416.32
7.3.300.0000.00616.34
7.3.290.0000.01416.42
7.3.280.0060.01316.26
7.3.270.0140.00317.40
7.3.260.0090.00916.55
7.3.250.0110.00716.45
7.3.240.0090.00916.43
7.3.230.0100.00716.39
7.3.210.0080.01116.49
7.3.200.0140.00619.39
7.3.190.0120.01316.54
7.3.180.0120.00316.55
7.3.170.0100.00616.32
7.3.160.0130.00316.45
7.3.120.0030.01415.11
7.3.10.0000.01216.64
7.3.00.0030.01016.71
7.2.330.0060.01216.36
7.2.320.0150.00916.55
7.2.310.0000.01616.41
7.2.300.0140.00616.43
7.2.290.0060.01016.43
7.2.130.0090.00316.68
7.2.120.0030.00916.59
7.2.110.0060.00316.86
7.2.100.0040.00416.82
7.2.90.0040.00716.85
7.2.80.0000.01116.71
7.2.70.0030.00916.58
7.2.60.0040.00816.81
7.2.50.0050.00316.90
7.2.40.0030.01016.95
7.2.30.0060.00616.91
7.2.20.0060.01216.79
7.2.10.0070.00316.90
7.2.00.0080.00518.09
7.1.250.0100.00015.94
7.1.70.0030.00717.19
7.1.60.0060.00617.10
7.1.50.0100.01417.02
7.1.00.0030.07322.41
7.0.200.0030.01316.79
7.0.140.0030.07021.99
7.0.60.0100.07720.02
7.0.50.0070.07017.91
7.0.40.0070.04320.30
7.0.30.0230.04720.20
7.0.20.0270.04320.20
7.0.10.0300.07320.09
7.0.00.0070.08720.13
5.6.280.0070.07020.98
5.6.210.0130.06720.64
5.6.200.0000.04318.09
5.6.190.0100.06320.57
5.6.180.0300.04720.61
5.6.170.0230.03720.71
5.6.160.0000.06320.52
5.6.150.0000.04718.11
5.6.140.0000.04318.21
5.6.130.0000.06318.21
5.6.120.0070.08321.01
5.6.110.0130.06020.96
5.6.100.0200.07321.00
5.6.90.0100.08320.96
5.6.80.0070.08020.39
5.6.70.4470.03720.36
5.5.350.0070.08020.50
5.5.340.0030.03717.98
5.5.330.0030.08720.46
5.5.320.0200.07320.29
5.5.310.0330.07720.20
5.5.300.0170.05718.00
5.5.290.0070.08017.91
5.5.280.0070.08320.87
5.5.270.0030.06020.76
5.5.260.0070.04020.96
5.5.250.0000.06720.71
5.5.240.0000.08320.14
5.4.450.0630.06019.59
5.4.440.0170.06319.32
5.4.430.0100.05719.51
5.4.420.0130.05319.15
5.4.410.0070.05718.70
5.4.400.0100.05018.66
5.4.390.0070.05718.53
5.4.380.0230.05718.77
5.4.370.0100.05718.59
5.4.360.0230.05018.58
5.4.350.0200.05318.70
5.4.340.0170.06718.57
5.4.320.0070.04212.46
5.4.310.0110.03312.45
5.4.300.0040.03912.46
5.4.290.0050.03812.45
5.4.280.0030.03712.35
5.4.270.0070.04112.35
5.4.260.0070.06718.85
5.4.250.0070.05318.83
5.4.240.0100.05318.70
5.4.230.0100.07018.88
5.4.220.0100.07318.79
5.4.210.0100.07718.83
5.4.200.0030.05718.64
5.4.190.0170.04319.02
5.4.180.0130.06018.83
5.4.170.0030.05719.02
5.4.160.0100.05718.86
5.4.150.0070.08018.86
5.4.140.0130.06716.23
5.4.130.0130.06716.47
5.4.120.0070.05316.24
5.4.110.0130.04316.49
5.4.100.0030.05316.38
5.4.90.0030.05316.45
5.4.80.0030.06016.14
5.4.70.0070.06016.49
5.4.60.0130.05016.18
5.4.50.0170.05716.39
5.4.40.0100.07016.52
5.4.30.0130.06016.39
5.4.20.0130.07716.26
5.4.10.0100.05716.24
5.4.00.0170.06015.87
5.3.290.0040.04112.80
5.3.280.0200.05714.52
5.3.270.0030.06314.54
5.3.260.0100.07314.63
5.3.250.0130.06014.61
5.3.240.0130.05014.46
5.3.230.0030.08014.61
5.3.220.0070.05014.61
5.3.210.0130.04714.66
5.3.200.0100.07314.72
5.3.190.0030.07714.41
5.3.180.0100.04714.59
5.3.170.0100.05314.45
5.3.160.0170.05314.61
5.3.150.0030.08314.43
5.3.140.0100.05314.33
5.3.130.0100.07314.59
5.3.120.0200.07014.32
5.3.110.0200.07314.54
5.3.100.0100.04714.05
5.3.90.0070.05314.04
5.3.80.0070.05014.07
5.3.70.0000.05714.11
5.3.60.0100.06013.77
5.3.50.0030.06713.99
5.3.40.0100.04313.96
5.3.30.0100.04713.75
5.3.20.0070.05713.39
5.3.10.0070.05313.50
5.3.00.0130.07313.51
5.2.170.0070.04011.23
5.2.160.0100.05311.14
5.2.150.0130.03011.24
5.2.140.0130.05311.07
5.2.130.0130.04011.02
5.2.120.0100.05311.10
5.2.110.0030.04311.00
5.2.100.0130.05311.12
5.2.90.0130.03711.02
5.2.80.0130.05011.02
5.2.70.0030.04310.94
5.2.60.0070.04311.07
5.2.50.0070.05310.91
5.2.40.0070.04311.11
5.2.30.0100.05311.07
5.2.20.0100.03710.80
5.2.10.0000.04310.62
5.2.00.0100.04010.64
5.1.60.0030.04310.43
5.1.50.0070.03310.43
5.1.40.0000.05310.43
5.1.30.0130.03010.43
5.1.20.0000.04010.43
5.1.10.0000.05710.43
5.1.00.0100.04310.43
5.0.50.0030.03010.43
5.0.40.0070.02710.43
5.0.30.0030.06010.43
5.0.20.0030.03010.43
5.0.10.0100.02310.43
5.0.00.0030.05010.43
4.4.90.0000.03310.43
4.4.80.0030.03010.43
4.4.70.0030.02010.43
4.4.60.0000.02310.43
4.4.50.0000.02310.43
4.4.40.0070.03710.43
4.4.30.0070.02310.43
4.4.20.0000.02310.43
4.4.10.0030.03010.43
4.4.00.0130.02710.43
4.3.110.0030.03010.43
4.3.100.0070.02710.43
4.3.90.0030.02310.43
4.3.80.0030.03310.43
4.3.70.0000.03010.43
4.3.60.0000.03710.43
4.3.50.0070.02310.43
4.3.40.0000.03710.43
4.3.30.0100.02010.43
4.3.20.0000.02310.43
4.3.10.0030.02010.43
4.3.00.0130.0206.95

preferences:
39.86 ms | 401 KiB | 5 Q